Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting a JSONL (JSON Lines) file #191

Open
DrGriff opened this issue Jul 16, 2024 · 2 comments
Open

Formatting a JSONL (JSON Lines) file #191

DrGriff opened this issue Jul 16, 2024 · 2 comments
Assignees

Comments

@DrGriff
Copy link

DrGriff commented Jul 16, 2024

I'm starting to work a lot with JSONL files (JSON Lines).

I know that the idea behind a JSONL file is that each line in the file is a separate JSON "object", but that makes it very hard to read. I know that I can Format or Compress each line individually, but it would be great if I could Format the whole document to read it and then Compress the whole document again to use it.

@SinghRajenM SinghRajenM self-assigned this Aug 15, 2024
@molsonkiko
Copy link

FWIW JsonTools has had support for JSON Lines documents for some time. The tree view works with JSON Lines; no need to reformat them first.

@SinghRajenM
If you're curious how I implemented the JSON Lines parser, the source code is here.

@SinghRajenM
Copy link
Collaborator

@molsonkiko thanks for the info.
Currently, this plugin uses rapidjson under the hood to parse json. I am exploring some other options as rapidjson's sax parser does provide line/position information. I am trying to figure some existing parser instead of write owner custom parser.

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

No branches or pull requests

3 participants