How to validate JSON (and fix common errors)

Valid JSON follows a few strict rules. When parsing fails, it's almost always one of a handful of mistakes — here they are, with the fix.

The usual culprits

The fastest way to find the error

Rather than scan by eye, paste the JSON into a validator that points at the exact spot. The parser reports the position, so you jump straight to the broken line instead of hunting.

Paste your JSON into the free JSON viewer — if it's invalid, it shows the error message with the exact line and column; if it's valid, it renders as a clean, searchable tree. No upload, no sign-up.