How to use the json validator
- Paste your JSON.
- Read the result: valid, or the line and column of the first error.
- Fix the error and check again.
The most common JSON mistakes
- Trailing commas after the last item:
[1, 2,]. - Single quotes: JSON needs
"double"quotes. - Unquoted keys:
{name: 1}must be{"name": 1}. - Comments: JSON doesn’t allow
//or/* */. - Missing commas between items.
Examples
Trailing comma: remove the comma before “}”.
Expected a key in double quotes