I am completely baffled. I am getting an exception when trying to JSON.parse() the following string:
{"result":0,"extra":"2a9e10ecdeb8e65165c8635d51fd6b8f6fa7c10e951167a093ac1621e81dd7e8"}
The exact error reported by the exception is:
JSON.parse: unexpected character at line 1 column 1 of the JSON data
The string syntax is correct according to JSONLint. I have also confirmed that the data type is string.
What could be causing the exception?
JSON.parseis really a string, and those are really its contents, you will not get that error. (Unless you've replacedJSON.parsewith something nonstandard, which you probably haven't.) Update the question with a minimal reproducible example that we can actually see demonstrate the problem. - T.J. CrowderJSON.parseis astringand not a JSON Object? - Karthik VU