Answer the question
In order to leave comments, you need to log in
How to overcome error in JS "Uncaught SyntaxError: Unexpected token & in JSON at position 1"?
We have an array of data in PHP , return a string containing a JSON representation of the data using json-encode
.... some manipulations .. Get this string in JS ... Printed it to the console to check how it looks.
Start
End
I'm trying to make an object from this string using JSON.parse I'm getting an
error ((
I don't know what the problem is Escaping the
inner quotes (\")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question