Looping through an array of objects is a pretty fundamental functionality. This is what works for me.
var person = [];_x000D_
person[0] = {_x000D_
firstName: "John",_x000D_
lastName: "Doe",_x000D_
age: 60_x000D_
};_x000D_
_x000D_
var i, item;_x000D_
_x000D_
for (i = 0; i < person.length; i++) {_x000D_
for (item in person[i]) {_x000D_
document.write(item + ": " + person[i][item] + "<br>");_x000D_
}_x000D_
}
_x000D_