Skip to content

JSON Lines works, but with parse errors. #79

Description

@DidierLoiseau

JSON Lines is a convenient format for storing structured data that may be processed one record at a time. It works well with unix-style text processing tools and shell pipelines. It's a great format for log files. It's also a flexible format for passing messages between cooperating processes.

sample.json from https://jsonlines.org/examples/
(using .json extension so that GitHub accepts it, but behavior is the same with .jsonl)

When opening a JSON Lines document, it works, but it shows an error at the top:

SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 2 column 1 of the JSON data

Moreover the opening brace of each "line" is shown at the end of the previous "line", causing issues with the collapsing.

It would be nice to improve the handling of those files.

Resulting display

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions