JSON Validator
Check whether JSON is syntactically valid, with precise error locations.
What it does
The JSON Validator parses your input and reports whether it is valid JSON. When it isn't, it converts the parser's error position into a line and column number so you can find and fix the problem quickly.
Common errors
Comments in JSON
JSON has no comment syntax — // and /* */ are not valid and will cause a parse error.
NaN / undefined / Infinity
These JavaScript values are not valid JSON literals.
FAQ
Browsers only report a raw character offset. This tool converts that offset to a line/column by counting newlines before it.