I have a json array with a subarray within it formatted like this:
[{"id":"188","stars":"2","staryes":"2","starers [{"starfirstname":"Name1","starlastname":"Name1","staruser":"1"},
{"starfirstname":"Name2","starlastname":"Name2 ","staruser":"3"}],"time":"1364151043","postedby":"43","text":"TEST","firstname":"Name3","lastname":"Name3","picture":"806243.jpg"}]
I can run a loop on the entire array by doing this:
$.each(data, function(i, data) { //function })
but I can't figure out how to get a loop to run on the sub array 'starers'
What's the best way of doing this?