Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

converting jsObject to JSON

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