Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

converting JSON to jsObject

const jsonData = '{ "book": { "name": "JSON Primer", "price": 29.99, "inStock": true, "rating": null } }';
 
const jsObject = JSON.parse(jsonData);
 
console.log(jsObject);
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #converting #JSON #jsObject
ADD COMMENT
Topic
Name
3+8 =