What kind of an exception will be thrown if the string to parse is not valid JSON?
(a) SyntaxError
(b) ArrayOutOfBoundException
(c) Both SyntaxError and ArrayOutOfBoundException
(d) Compilation error
I got this question in exam.
My question comes from Parsing Values using JavaScript topic in division Parsing, Benchmarking and Logging of JavaScript