Guias
Understand JSON.parse errors
Interpret common SyntaxError messages, context snippets and fast fixes for browser payloads.
JSON is stricter than JavaScript
Valid JSON keys and strings need double quotes. Comments, trailing commas and unquoted keys copied from JavaScript config are not valid JSON syntax.
Use position before interpretation
Browser messages expose position, line or column depending on the engine. The fault often sits directly before or after that spot, such as a comma before a closing bracket.
Fix syntax before formatting
A formatter cannot rescue broken JSON. The error explainer checks the parse step first and then returns a short context snippet with the likely next fix.