I keep getting “Uncaught SyntaxError: Unexpected token o”

Looks like jQuery takes a guess about the datatype. It does the JSON parsing even though you’re not calling getJSON()– then when you try to call JSON.parse() on an object, you’re getting the error.

Further explanation can be found in Aditya Mittal’s answer.

Leave a Comment