Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json javascript

var obj = {name: 'John', age: 20}

// to json
var json = JSON.stringify(obj);

//json to object
var obj1 = JSON.parse(json);
Source by codewithharry.com #
 
PREVIOUS NEXT
Tagged: #json #javascript
ADD COMMENT
Topic
Name
8+9 =