JSON Validator
Check whether your JSON is valid and find the exact line and column of any syntax error.
Validation runs locally in your browser. Your JSON is never transmitted or stored.
What is json validator?
The JSON validator tells you in plain language whether a document is valid JSON, and when it is not, exactly where the first problem is. Instead of a cryptic stack trace you get a friendly message with line and column numbers.
It uses the same parser your browser and most runtimes rely on, so a document that passes here will parse with JSON.parse in JavaScript and equivalent parsers elsewhere.
How to use it
-
Paste your JSON
The check runs automatically as you type or paste.
-
Read the verdict
A green banner means valid; a red banner shows the error location.
-
Fix and re-check
Correct the reported line and column, and the verdict updates instantly.
Examples
Trailing comma
A trailing comma after the last property is the most common JSON mistake.
{
"a": 1,
} Result: Invalid — expected a property name after the comma (line 3).