2021-11-25 19:26:42 +05:30

16 lines
227 B
Groff

let myList = [{
"name": "Learn JavaScript",
"status": true
},
{
"name": "Try JSON",
"status": false
}
];
const newStr = JSON.stringify(myList);
const newObj = JSON.parse(newStr);
newObj.forEach((el)=>{
console.log(el);
})