Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

"error" not emitted on incomplete JSON #112

Open

Description

@robaca

If I pass JSON that is incomplete, like

{"rows":[{"id":"id-1","name":"Name A"},{"id":"id-2","name":"

to the parser, it doesn't emit an error.

Activity

  1. added a commit that references this issue on Dec 22, 2016
  2. lojzatran commented on Apr 12, 2017

    @lojzatran

    Hi, what's the status of this task? I saw there's PR already, when it will be merged? Thanks!

  3. dominictarr commented on Apr 18, 2017

    @dominictarr
    Owner

    @lojzatran the pull request is incorrect, see my comments on it

  4. dumbmatter commented on Jan 26, 2018

    @dumbmatter

    Seems there have been some commits since your last comment on that PR. Are there any other outstanding issues with the PR? If anything needs to be done (like putting this new behavior behind an option to maintain backwards compatibility), I'd be happy to help.

    I have to work with some APIs that output JSON but sometimes fail by terminating early, and I would like to handle that error case rather than silently continue to work with partial data. Probably at least a few other sad people have to deal with similar APIs :)

  5. vancouverwill commented on Jun 1, 2018

    @vancouverwill

    this would be very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions