| Trailing commaSyntax error· Beginner | Expected double-quoted property name in JSON at position 26 | A comma follows the final property or array item. | Remove the final comma. |
| Missing quotes around keysSyntax error· Beginner | Expected property name or '}' in JSON at position 1 | Object keys were written as bare identifiers. | Wrap every key in double quotes. |
| Single quotes instead of double quotesSyntax error· Beginner | Expected property name or '}' in JSON at position 1 | Keys or strings use single quotes. | Replace string delimiters with double quotes. |
| Missing commaSyntax error· Beginner | Expected ',' or '}' after property value in JSON at position 15 | Adjacent properties or array items lack a comma. | Insert a comma between the values. |
| Comments inside JSONSyntax error· Beginner | Expected property name or '}' in JSON at position 4 | JSONC or JavaScript comments were copied into strict JSON. | Remove comments or use a JSONC-aware parser. |
| Missing closing bracket or braceSyntax error· Intermediate | Expected ',' or '}' after property value in JSON at position 19 | An object or array reaches the end without its matching close. | Add the missing closing brace or bracket. |
| Extra closing bracket or braceSyntax error· Intermediate | Unexpected non-whitespace character after JSON at position 20 | A completed top-level value has an unmatched closing token. | Remove the extra closing token. |
| Incorrect nestingSyntax error· Intermediate | Expected ',' or ']' after array element in JSON at position 16 | A key-value pair was placed directly inside an array. | Use an object for named fields. |
| Invalid escape sequenceSyntax error· Intermediate | Bad escaped character in JSON at position 13 | A raw backslash creates an unsupported escape sequence. | Escape each literal backslash with another backslash. |
| Unescaped newline in a stringSyntax error· Intermediate | Bad control character in string literal in JSON at position 21 | A string contains a raw newline or control character. | Represent the line break with \n. |
| Invalid number formatSyntax error· Intermediate | Unexpected number in JSON at position 11 | The number uses a leading zero or another unsupported form. | Use JSON number grammar without the leading zero. |
| undefined used as a valueSyntax error· Advanced | Unexpected token 'u', "{"active": undefined}" is not valid JSON | A JavaScript-only undefined value was written into JSON. | Use null or omit the property according to the data contract. |
| Uppercase True, False, or NoneSyntax error· Beginner | Unexpected token 'T', "{"active": True}" is not valid JSON | Python-style True, False, or None was copied into JSON. | Use lowercase true, false, or null. |
| Truncated responseSyntax error· Advanced | Unterminated string in JSON at position 21 | A timeout, proxy, or network interruption cut off the body. | Inspect the raw response and retry or fix the upstream response. |
| HTML response instead of JSONSyntax error· Advanced | Unexpected token '<', "<html><bod"... is not valid JSON | The server returned an HTML error or redirect page. | Check status and Content-Type before parsing. |
| Empty response bodySyntax error· Beginner | Unexpected end of JSON input | A 204 response, failure path, or cleared editor produced no body. | Handle empty bodies according to the API contract before parsing. |
| Duplicate keysParser warning· Advanced | No syntax error is required; behavior for duplicate names can differ between implementations. | The same object member name appears more than once. | Keep one authoritative value for each key. |
| Valid JSON, wrong shapeShape error· Advanced | JSON.parse succeeds; later code may throw TypeError: items.map is not a function | The response is valid JSON with an unexpected top-level type. | Validate the parsed shape before using it. |