Answer the question
In order to leave comments, you need to log in
Is the data coming in the wrong format?
Data leaves the server in JSON format like this: {"status":"OK","offer_id":"1276418322"}
and comes like this: "{\"status\":\"OK\",\ "offer_id\":\"1276497776\"}"
That is, you need to do JSON.parse 2 times in a row.
Why is this happening?
Answer the question
In order to leave comments, you need to log in
The node itself serializes objects. Obviously, you first serialize with your hands, then the node does it. Well, in the browser, of course, you have to deserialize twice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question