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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -