how to remove from json string in javascript code example
Example 1: 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);
Example 2: remove json javascript
delete myObj.test.key1;