Check whether JSON is valid
One misplaced comma or unquoted key makes an entire JSON document invalid, and the program consuming it usually fails with an unhelpful message. This validator parses your JSON and, if it's broken, points to where parsing failed — the fastest way to find the single character causing the problem instead of scanning the whole file.
How to use it
- Paste the JSON you want to check.
- See immediately whether it's valid.
- If not, read the error position and fix the character just before it.
The usual culprits
- A trailing comma after the last item — not allowed in JSON.
- Single quotes instead of double quotes around strings or keys.
- Comments, which JSON doesn't permit.
Questions people ask
Why is my JavaScript object rejected? JSON is stricter than JavaScript literals — keys must be double-quoted and trailing commas aren't allowed.
Is my data sent anywhere? No — validation runs in your browser.