I have a string that needs that look like this:
{"myObject":"{ \"timestamp\" : \"123\" , \"data\" : {\"description\": \"sample\" , \"number\": \"123\"}
What I need to do is to replace all \" with " only. What is the regex for this?
I have tried inputString.replace(/\\"/g, '"'); but its not working
Aucun commentaire:
Enregistrer un commentaire