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);
Also in JavaScript:
- how to use fetch() to fetch an image from database in js
- CChartpie react
- javascript convert date from mm/dd/yyyy to yyyymmdd
- variable javascript
- get multiple checkbox value in javascript
- tappify react
- string comparison in javascript
- for in and for of in js
- set navigation drawer to open by default react native
- pull out only text from element javascript
- sweet alert js
- React hooks update parent state from child
- javascript canvas reset transform
- clear terminal node js
- javascript get cpu cores
- javascript get scroll position
- javascript filter array of objects by key
- javascript minute and second to convert seconds
- js immutable update object
- angular import service
- how to create angular project in visual studio code windows 10
- jquery check if click to this self not this child
- js random minus
- angular material upload file