how to get data from json response in javascript code example
Example 1: javascript parse json
const json = '{ "fruit": "pineapple", "fingers": 10 }';
const obj = JSON.parse(json);
console.log(obj.fruit, obj.fingers);
Example 2: object json parse javascript
var objJson1 = JSON.parse(JSON.stringify(objNotJson1));