My loop function is as below
var resources= jsonObj.entry;
var resourceType;
var i;
for (i = 0; i < resources.length; i++) {
resourceType += resources[i];
}
console.log(resourceType)
if i do jsonObj.entry[0] i get the first entry so i implemented for-loop to get all the entries but console.log on resourceType prints the following


resorces[i]you should initializeresourceTypewith an empty string, likeresourceType = "".[object Object]or get rid of theundefinedat the start?{}.toString() + {}.toString()) Is this what you want?