Skip to content
← SyntaxBench reference notes

Check a JSON Lines file before importing it

Paste one JSON value per line to locate the first malformed record. The checker reports the physical line number and preserves the original numeric text.

When to use this check

A supplier sends one event per line. Joining the lines with commas before checking them turns a useful line-level error into an offset inside a much larger document. Validate each record in place first.

Reproduce the result

Paste the example and run the check. Line 2 has a trailing comma. Remove the comma after 7 and run it again. The report should change from an error on line 2 to two valid records.

Interpret the result

This checks JSON syntax, including top-level strings and numbers. It cannot confirm a required field, detect duplicate object keys, or validate a business rule. Empty lines count as errors; one final newline is allowed.

Browse the other SyntaxBench field guides