for (var name in json_parsed) { console.log(name + "=" + json_parsed[name]); }
If you need to check whether the corresponding property is defined for the object in question, and not for some of them in the prototype chain (this is funny for the case in question, but still useful), you can add this check:
if (json_parsed.hasOwnProperty(name)) console.log(name + "=" + json_parsed[name]);
EDIT
To actually iterate over the attributes of all objects in an array, use this snippet:
var items = json_parsed.Items; for (var i = 0; i < items.length; ++i) { console.log("Item #" + i); for (var name in items[i]) { console.log(name + "=" + items[i][name]); } }
Alexander Pavlov
source share