Contact

JSON Validator

Check that a JSON document parses, and see the line if it doesn't.

Check that a document parses as JSON. Use JSON Formatter when you also want to pretty-print it.

Status
Valid
Root
object

Valid JSON.

Calculations happen in your browser.

Worked example

{"ok": true} is valid JSON. {ok: true} is not, because the key is unquoted. A trailing comma after the last property is also invalid.

FAQ

What counts as valid JSON?
The JSON grammar: objects, arrays, strings in double quotes, numbers, true, false, and null. No comments and no trailing commas.
Does a successful check format the document?
No. This page only reports whether it parses. Use the JSON Formatter to pretty-print it.
Will it tell me the line of the error?
It shows the parser message from the browser, which often includes a position.