var foo = { 'vals':[{'id':'foo'},{'id':'bar'}] }; $(foo.vals).each(function(i,o){ alert(this.id); });