Answers for "remove backslash in json array javascript"

0

remove backslash in json array javascript

var data = {"\\id\\":"\\23232\\","\\pass\\":"\\1434\\"};
    console.log(data);
    var b=JSON.stringify(data);
    str = b.replace(/\\/g, '');
    console.log(str);
Posted by: Guest on May-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language