JSON lint
Free online JSON lint and validator. Check if your JSON is valid with detailed errors, error position and structure statistics.
How it works
- 1
Paste the JSON to validate
Copy your JSON code and paste it into the input field: the tool starts validation automatically in real time.
- 2
Read the validation result
If the JSON is valid you'll see a green badge; if there are syntax errors, they are shown with the exact line and position of the problem.
- 3
Check the structure statistics
For valid JSON, the tool shows the count of keys, nesting depth, number of objects, arrays, strings, numbers, booleans and nulls.
FAQ
What are the most common JSON errors?
Trailing comma after the last element, single quotes instead of double, unquoted keys and comments (not supported in standard JSON).
What is JSON depth?
It's the maximum nesting level of objects and arrays. A JSON with objects inside objects inside arrays has depth 3 or more.
Are JSON and JavaScript object the same thing?
No, JSON is a more restrictive subset: it requires double quotes for keys, doesn't support comments, trailing commas or functions. A valid JS object might not be valid JSON.