JSON Validator
Check JSON against the strict standard. Errors show the line, column and a clear explanation such as "trailing comma".
About the JSON Validator
A single missing comma or stray quote can stop an application from loading its settings, or make an API reject a request with a vague “bad request” error. This validator reads your JSON with a strict parser and either confirms it is valid or stops at the first problem, telling you the line, the column and what it expected to find there.
It suits anyone who edits JSON by hand: developers writing request bodies, administrators changing config files, and people preparing data for import.
When to use it
- An app refuses to start after you edited its
settings.jsonand you need to find the typo. - You hand-wrote a request body and want to check it before sending it.
- JSON copied from a chat message may have picked up curly quotes or a trailing comma.
- You suspect an object contains the same key twice.
Worked example
Validate this five-line input:
{
"name": "Asha",
"roles": ["admin", "editor",],
"active": true
}
The tool reports: Invalid JSON at line 3, column 31: Trailing comma before “]” is not allowed in JSON. Below the message it shows that line with a caret under the problem character.
Remove the comma after "editor" and validate again. The result is: Valid JSON. 3 keys, 1 object, 1 array, nesting depth 2.
Good to know
- The check follows the strict standard, RFC 8259. It covers quotes, commas, brackets, escape sequences such as
\uwith four hex digits, and number formats such as leading zeros. - Single-quoted strings get a specific hint: JSON strings need double quotes.
- Valid JSON that repeats a key, such as
{"id": 1, "id": 2}, passes with a warning, because most parsers keep only the last value. - A leading byte-order mark is accepted.
- The limits are 20 million characters and 500 levels of nesting.
- It checks syntax only. It does not check your data against a JSON Schema. To reformat valid JSON, use the JSON formatter.
How to use JSON Validator
- Paste your JSON.
- Select Validate JSON.
- Fix any reported error and validate again.
Privacy: how it works
Everything happens in your browser. Your text is not sent to any server.
Frequently asked questions
What does it check?
Syntax according to RFC 8259: quotes, commas, brackets, escapes and number formats. It also warns about duplicate keys.
Does it validate against a JSON Schema?
Not yet. It checks syntax only.