JsonForge · JSON errors
Expected property name or '}' in JSON at position 1
An unquoted key. JSON requires every key to be a double-quoted string; bare identifiers are JavaScript, not JSON.
The smallest input that causes it
{a: 1}JSON.parse on that gives, verbatim:
Expected property name or '}' in JSON at position 1 (line 1 column 2)
The fix
{"a": 1}That version parses.
Find it in your own document
Paste the JSON and get the error located by line and column, the document formatted, a schema inferred from it, and a diff against another version.
Open JsonForgeOther JSON errors
- Unexpected end of JSON input
- Unexpected token '<', "<html>" is not valid JSON
- "undefined" is not valid JSON
- Expected double-quoted property name in JSON
- Single quotes are not valid JSON
- Unexpected non-whitespace character after JSON
- Unexpected number in JSON
- Bad control character in string literal in JSON
- Bad escaped character in JSON
- Unterminated string in JSON