How to use JSON Validator — Check JSON Syntax Online Free
- 1Paste your JSON into the left-hand box.
- 2A valid or invalid verdict appears immediately, with the failing line and column if there is a problem.
- 3Copy the result, or download it as a file.
About JSON Validator
JSON's rules are stricter than they look, and the differences from JavaScript object syntax catch people out constantly: keys must be double-quoted, strings cannot use single quotes, and a trailing comma after the last element is an error rather than a harmless habit.
This validator parses the document with the browser's own JSON parser — the same one your code will use — so a pass here means a pass in production. When it fails, the character offset is converted into a line and column and the failing line is printed, which is usually enough to spot the problem immediately.
If you are debugging an API, paste the raw response body rather than what a viewer shows you. A surprising share of "invalid JSON" reports turn out to be an HTML error page being returned where JSON was expected.