I am getting a json response from backend and need to parse the json in frontend.
Here is my code:
this.on("success", function(file, response, action) {
response = JSON.parse(response);
console.log(response.id);
});
When run the code, it said the following.
Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
Note: The code do works well on Windows.