JSON Lines Converter
Convert JSON arrays to newline-delimited JSON (NDJSON) and back with precise per-line validation errors.
Loading JSON Lines Converter...
How to use
Array to JSON Lines writes one compact JSON value per line. JSON Lines to array parses each non-empty line independently and reports every invalid line.
Example
Input
[{"id":1},{"id":2}]
Output
{"id":1}
{"id":2}
Limitations
JSON Lines records must each occupy exactly one physical line. Comments and trailing commas are not valid JSON.
Frequently Asked Questions
Are blank lines accepted?
Yes. Blank lines are ignored when reading JSON Lines.
Will one bad line hide later errors?
No. Up to 100 line-specific parse errors are collected and reported together.