Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JSON.stringify with strip slash reactjs

var str = '{"2003":{"1":{"2":["test"],"3":["test2"]}}}';
var obj = {"2003":{"1":{"2":["test"],"3":["test2"]}}};

console.log( JSON.stringify(str) );  // {"2003":{"1":{"2":["test"],"3":["test2"]}}} 
console.log( JSON.stringify(obj) );  // {"2003":{"1":{"2":["test"],"3":["test2"]}}} 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #strip #slash #reactjs
ADD COMMENT
Topic
Name
4+5 =