JSON Lines Validator
Check that every line of a JSON Lines (NDJSON) file is valid JSON and see the line number of each bad record.
How to check a JSON Lines file
Paste your JSON Lines
Paste or type it into the box, or press Try an example. One JSON value per line.
Read the result
A green or red message says whether it is valid, with the details below.
Fix and re-check
Edit the text and the result updates straight away.
A bad line is named, so the rest of the file does not need checking by hand.
When to use JSON Lines Validator
A large JSON Lines export fails to import, and you want to find the bad record.
A log file in NDJSON format should be checked before it is processed.
Tips for a better JSON Lines Validator result
Paste the lines, with one JSON value per line, and read the list of bad lines with their numbers and a snippet.
Fix and re-check, since the result updates as you edit.
JSON Lines Validator: limits and what to check
Blank lines are skipped, and each line can be any JSON value, not only an object.
To make one array from the lines, use the JSON Lines to JSON converter.
About JSON Lines Validator
Check that every line of a JSON Lines (NDJSON) file is valid JSON. Each bad line is listed with its number, the problem and the start of its text, so you can fix a large export quickly.
FAQs
Are blank lines allowed?
Yes. They are skipped.
Does each line need to be an object?
No. Any JSON value is valid on a line.
Can I turn it into one array?
Use JSON Lines to JSON Converter.