json parse in angular 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));