Answers for "parse json object javascript"

1

js parse json

const json = '{"result":true, "count":42}';
const obj = JSON.parse(json);

console.log(obj.count);
// expected output: 42

console.log(obj.result);
// expected output: true
Posted by: Guest on January-04-2021

Code answers related to "parse json object javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language