JSON vs JSONL with Examples

If the file contains one array of objects, use JSON to CSV. If each line is a standalone object, use JSONL to CSV.

The same two product records

JSON array
[{"id":"01"},
 {"id":"02"}]
JSONL
{"id":"01"}
{"id":"02"}

Both inputs should produce an id column and two records, in the order 01, 02.

Limits

Renaming a formatted array to .jsonl leaves its structure unchanged. The first line might contain only an opening bracket, which is not an object.

Tools