Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exceptions thrown by JSON.parse() occur when string failed to be parsed as JSON.

Reference entryJavaScriptFetched
SyntaxError: JSON.parse: unterminated string literal
As listed by MDN Web Docs
SyntaxError: JSON.parse: bad control character in string literal
As listed by MDN Web Docs
SyntaxError: JSON.parse: bad character in string literal
As listed by MDN Web Docs
SyntaxError: JSON.parse: bad Unicode escape
As listed by MDN Web Docs
SyntaxError: JSON.parse: bad escape character
As listed by MDN Web Docs
SyntaxError: JSON.parse: unterminated string
As listed by MDN Web Docs
SyntaxError: JSON.parse: no number after minus sign
As listed by MDN Web Docs
SyntaxError: JSON.parse: unexpected non-digit
As listed by MDN Web Docs
SyntaxError: JSON.parse: missing digits after decimal point
As listed by MDN Web Docs
SyntaxError: JSON.parse: unterminated fractional number
As listed by MDN Web Docs
SyntaxError: JSON.parse: missing digits after exponent indicator
As listed by MDN Web Docs
SyntaxError: JSON.parse: missing digits after exponent sign
As listed by MDN Web Docs
SyntaxError: JSON.parse: exponent part is missing a number
As listed by MDN Web Docs
SyntaxError: JSON.parse: unexpected end of data
As listed by MDN Web Docs
SyntaxError: JSON.parse: unexpected keyword
As listed by MDN Web Docs
SyntaxError: JSON.parse: unexpected character
As listed by MDN Web Docs
SyntaxError: JSON.parse: end of data while reading object contents
As listed by MDN Web Docs
SyntaxError: JSON.parse: expected property name or '}'
As listed by MDN Web Docs
SyntaxError: JSON.parse: end of data when ',' or ']' was expected
As listed by MDN Web Docs
SyntaxError: JSON.parse: expected ',' or ']' after array element
As listed by MDN Web Docs
SyntaxError: JSON.parse: end of data when property name was expected
As listed by MDN Web Docs
SyntaxError: JSON.parse: expected double-quoted property name
As listed by MDN Web Docs
SyntaxError: JSON.parse: end of data after property name when ':' was expected
As listed by MDN Web Docs
SyntaxError: JSON.parse: expected ':' after property name in object
As listed by MDN Web Docs
SyntaxError: JSON.parse: end of data after property value in object
As listed by MDN Web Docs
SyntaxError: JSON.parse: expected ',' or '}' after property value in object
As listed by MDN Web Docs
SyntaxError: JSON.parse: expected ',' or '}' after property-value pair in object literal
As listed by MDN Web Docs
SyntaxError: JSON.parse: property names must be double-quoted strings
As listed by MDN Web Docs
SyntaxError: JSON.parse: expected property name or '}'
As listed by MDN Web Docs
SyntaxError: JSON.parse: unexpected character
As listed by MDN Web Docs
SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data
As listed by MDN Web Docs
Category
SyntaxError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.