// if u have json response u can parse your json like below
getData().then(result => {
var jsonResult = JSON.stringify(result)
var parsedObject = JSON.parse(jsonResult)
parsedObject.forEach(r => {
console.log(r)
})