Answers for "how to use parse json in a javascript function"

PHP
12

javascript parse json

const json = '{ "fruit": "pineapple", "fingers": 10 }';
const obj = JSON.parse(json);
console.log(obj.fruit, obj.fingers);
Posted by: Guest on May-20-2020

Code answers related to "how to use parse json in a javascript function"

Browse Popular Code Answers by Language