How to remove " from my Json in javascript?

The Solution to How to remove " from my Json in javascript? is


Presumably you have it in a variable and are using JSON.parse(data);. In which case, use:

JSON.parse(data.replace(/"/g,'"'));

You might want to fix your JSON-writing script though, because " is not valid in a JSON object.

~ Answered on 2012-02-11 23:07:06


Most Viewed Questions: