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.

  1. 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.

  2. 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.

  3. 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

From · JSON5

JSON5

JSON with comments, trailing commas and unquoted keys.

Extensions
.json5
MIME type
application/json5
Kind
Text and data
To · JSONL

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.

terminal
$ cv convert report.json5 report.jsonl
$ cv convert report.json5 report.jsonl

Questions.What people ask about JSON5 to JSONL.

01OF 04

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.

More conversions.Other ways in and out of JSON5 and JSONL.