JavaScript: [Uncaught SyntaxError] Unexpected token o in JSON at position 1
The data you are trying to parse in JavaScript is already a JavaScript Object. When the JSON.parse(data) tries to parse a string to JSON, it expects a string. And it is getting a JSON object already, which has the “o” (from the “object”), so JavaScript can not parse it.