JSON Validator
Check whether your JSON is valid before using it in an API request or configuration file. See parser errors as you edit, without sending your JSON to a server.
JSON source editor
Find JSON syntax errors before they reach your application
A missing comma, an unescaped quote, or a trailing comma can make a JSON document unreadable to an application. This JSON syntax checker parses the text as you type and reports the browser's error message. When the parser provides a location, the results include its line and column. Validation leaves your source text unchanged.
How to use the JSON Validator
- Paste the JSON document you want to check.
- Read the validation result or choose Validate JSON to check again.
- Fix the reported issue and repeat until the document is valid.
JSON Validator example
{
"enabled": true,
"retries": 3,
}This example is invalid because the final property has a trailing comma. Remove the comma after 3 to make the document valid.
Syntax checks and data representation
The tool uses JavaScript JSON parsing. Syntax validation does not check a schema or application rules. Formatting and minification parse and serialize the document: duplicate property names collapse to the last value, integer-like keys may reorder, and numbers beyond JavaScript’s safe integer range can lose precision. Keep long numeric identifiers as strings and retain your original source when exact representation matters.
JSON Validator questions
Does this validate a JSON Schema?
No. This page checks JSON syntax. It does not check required fields, business rules, or compliance with a JSON Schema.
Why does a JavaScript object fail JSON validation?
JSON requires double-quoted property names and strings. It does not allow single quotes, comments, undefined, or trailing commas, even when JavaScript accepts them.
Does the validator repair my JSON automatically?
No. Your input is preserved. Correct the reported error in the editor, then check the next result. The parser generally reports the first syntax error it encounters.