How to format and validate JSON
Paste your JSON into the box and press Format. Valid JSON is re-indented in place; invalid JSON produces an error message with the position of the problem so you can fix it. Press Minify to strip whitespace before sending the data over a network or embedding it in code.
JSON rules worth remembering
- Property names and strings must use double quotes.
- No trailing commas and no comments.
- Values can be strings, numbers,
true,false,null, arrays or objects.