how to iterate through a stringified json array in javascript
// Suppose the following is the stringified array :
let array = [{
name : 'name1'
},
{
name : 'name2'
},
{
name : 'name3'
}]
// We can use for-of loop to get the value of the key name:
for(key of array){
console.log(key.name)
}
// we can also use for-each loop here :
array.forEach((element)=>{
console.log(element.name)
})