What the validator checks
It parses your text with the same strict rules as JSON.parse (RFC 8259). Valid JSON is pretty-printed on the right; invalid JSON is shown with the offending line highlighted and the position of the first error.
The most common JSON errors
| Error | Wrong | Right |
|---|---|---|
| Trailing comma | [1, 2, 3,] | [1, 2, 3] |
| Single quotes | {'a': 1} | {"a": 1} |
| Unquoted key | {a: 1} | {"a": 1} |
| Comments | // note | Not allowed in JSON |
| Python / JS literals | None, undefined, NaN | null |
| Raw line break in a string | a real newline inside quotes | \n |
Valid JSON vs. valid data
A validator confirms the syntax. Whether the data has the right fields and types is a separate question, usually answered with a JSON Schema. If an API still rejects valid JSON, compare the field names and types against its documentation.


