javascript - Removing "\"" from json string -
hello trying remove following example jsonstring
"work_desc":"hello\"world" tried following;
jsonstring = jsonstring.replace(new regexp('\\\"', 'g'), ' '); would transform this:
[{"pigsback":0,"work_desc":"hello\"world","owner":"jbb"}] to:
[{"pigsback":0,"work_desc":"hello world","owner":"jbb"}] currently above replace code this:
[{ pigsback :0 work_desc : hello world , owner : }] any ideas?
you turn json object handle of you..
json.parse(jsonstring);
Comments
Post a Comment