What is causing “Uncaught SyntaxError: Unexpected token o” with $.parseJSON() and JSON.parse() [duplicate]

response is already parsed, you don’t need to parse it again.

If you parse it again it will perform a toString-cast first so you’re parsing

"[object Object]"

which explains the unexpected token o.

Leave a Comment