Structure
One complete value per line
{"id":1}
{"id":2}Each non-empty input line must parse as one complete JSON value. Adjacent pretty-printed objects spanning multiple lines are not NDJSON records.
Data reference
Prepare newline-delimited JSON records, distinguish escaped new lines from record separators and diagnose malformed imports.
8 of 8 entries
Structure
{"id":1}
{"id":2}Each non-empty input line must parse as one complete JSON value. Adjacent pretty-printed objects spanning multiple lines are not NDJSON records.
Structure
[{"id":1},{"id":2}] → two NDJSON linesConverting an array emits one line per array element, preserving order. Converting back wraps the parsed values in one array.
Strings
{"note":"first\nsecond"}A backslash-n inside a JSON string represents a line break in that value. It must stay escaped so the serialized record occupies a single physical line.
Structure
{"id":1}
{"id":2}
Array commas and outer brackets belong to ordinary JSON arrays. Do not leave a trailing comma after each NDJSON record.
Values
42
true
null
"message"A JSON value can be a primitive as well as an object or array. Check whether the receiving service expects objects specifically.
Parsing
record 1
record 2This converter ignores blank lines. Different JSON Lines consumers may reject them; do not depend on blank records carrying meaning.
Parsing
{"id":1}
{"id":}The reverse converter reports the offending non-empty record number. Fix malformed quoting, missing values or a line that was split inside a record.
Limits
up to 5,000 records and 1 million charactersThis browser workflow holds a bounded document in memory. Use a proper streaming processor for unbounded event feeds or much larger log files; quote exact large numeric identifiers.