How to convert NDJSON to JSON
Collect separate JSON values from NDJSON or JSONL into an ordinary array file. Use it for event logs or batch exports that a consumer expects as one valid JSON document.
- Paste the lines or open the file and convert.
- Every nonblank line should be a complete JSON value.
- Check the number and order of records in the resulting array.
- Select Convert and review the result.
Example input
{"sku":"00104","item":"Notebook"}
{"sku":"00105","item":"Pencil"}Example use
Turn a short event log into a JSON array for a debugging fixture or local table conversion.
Output and compatibility
The converter skips blank lines and parses each remaining line independently. Fields may change types only if the original data already had those parsed types, and large numeric literals can lose precision during a JSON round trip.
Troubleshooting
If a line is invalid, use the reported line number and verify that objects do not spill across multiple physical lines.
Use JSON to NDJSON for a consumer that reads one value per line.
Frequently asked questions
Does it accept .jsonl?
JSONL and NDJSON use the same line-per-record convention here.
Can a blank line become a null item?
Blank lines are skipped. Write null on its own line if it is a record.