Convert JSON5 to JSONL
Turn JSON5 files into JSONL. Each entry of a top-level list becomes one line of compact JSON, and any other value becomes a single line, with values and key order kept.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JSON5 files on the dialor turn it to pick what to do
A JSON5 file as one JSON object per line.A top-level list becomes one line per entry. Values and key order stay as they are.
What you get
One JSONL file. If the JSON5 file holds a top-level list, each entry becomes one line of compact JSON.
Any other value becomes a single line. Values and key order are kept in both cases.
What changes
Comments are dropped. They do not appear in the JSONL file.
JSON5 numbers become plain numbers, so the output holds numbers in the usual JSON form.
Going the other way
To turn lines back into a JSON5 file, use JSONL to JSON5. To join several JSONL files into one, use merge JSONL.
JSON5 and JSONL.What each format is.
The formats
JSON5
JSON with comments, trailing commas and unquoted keys.
- Extensions
- .json5
- MIME type
- application
/json5 - Kind
- Text and data
JSON Lines
JSON Lines, one JSON object per line, the format of logs and datasets.
- Extensions
- .jsonl .ndjson
- MIME type
- application
/jsonl - Kind
- Text and data
In your code.The same JSON5 to JSONL conversion through the API, for your app or your agent.
$ cv convert report.json5 report.jsonl$ cv convert report.json5 report.jsonlQuestions.What people ask about JSON5 to JSONL.
If the top level is a list, each entry gets its own line. Any other top-level value becomes one line.
Yes. Values and key order are kept.
They are dropped. The JSONL file has none of them.
You get one file.