What kind of an exception will be thrown if the string to parse is not valid JSON?
What kind of an exception will be thrown if the string to parse is not valid JSON? Correct Answer SyntaxError
The JSON.parse() method parses a string and returns a JavaScript object. The method JSON.parse()throws a SyntaxError exception if the string to parse is not valid JSON.