Optional
message: stringOptional
options: ParseErrorOptionsOptional
causeOptional
positionThe position where the error occurred.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureCreate .stack property on a target object
Optional
constructorOpt: Function
Error class for parse errors.
Remarks
This error is thrown when a parsing error occurs. ParseError is a subclass of SyntaxError.
This is in reference to the specification that the error thrown when a parse error occurs in the JSON.parse function is SyntaxError.