JSON Lines validator
Check one JSON value per line, locate syntax problems and copy a clear report. Your original text stays intact.
Check pasted JSON Lines
Use invented data. This tool processes text in this page, masks its controls from optional session recording, and does not save it or put it in the URL. Browser extensions and other page scripts remain outside its guarantees.
JSON Lines syntax passes
4 record lines · 4 syntax passed · 0 invalid
A final LF is present.
Syntax only: duplicate keys, numeric precision/range, UTF-8 file bytes and application schema are not checked. Input values are not rewritten or displayed as parsed numbers.
| Line | Result | Details |
|---|---|---|
| 1 | PASS · object | One JSON value; syntax passes. |
| 2 | PASS · array | One JSON value; syntax passes. |
| 3 | PASS · null | One JSON value; syntax passes. |
| 4 | PASS · string | One JSON value; syntax passes. |
Copy the validation report
JSON Lines is a sequence of JSON values
Each record occupies one physical line. Objects, arrays, strings, numbers, booleans and null are all permitted. A blank record is not a JSON value. Pretty-printed objects spanning several lines need to be serialized as one line per record first.
Line endings and a leading BOM
LF separates records. CRLF works because JSON accepts surrounding carriage-return whitespace. A final newline is optional; two final newlines create an extra blank record. A leading U+FEFF BOM is rejected. U+FEFF inside a quoted string is ordinary string content.
A syntax pass has a deliberately limited meaning
This checker uses the browser’s JSON parser without changing your input. Duplicate object keys are not detected. Large integers and exponents may exceed JavaScript’s numeric precision or range; passing syntax does not verify their numeric meaning. The tool reports only the outer value type and does not reserialize parsed values. Validate business fields and duplicate-key policy separately.
Pasted text is not an encoding audit
JSON Lines files should use UTF-8. This tool sees pasted text after decoding, so it cannot verify the original file’s bytes. Its bounded text check does not inspect compressed files, authenticate log records or guarantee that a downstream importer will accept your schema.
Reject duplicate keys and nonstandard numeric constants in Python →
Check required fields and object shape with JSON Schema →