var json = [ {"id":"1","pid":"0","type":"Individual","code":"i","status":"1"}, {"id":"2","pid":"0","type":"Group","code":"g","status":"1"}, {"id":"15","pid":"0","type":"asdasd","code":"asd","status":"1"}, {"id":"16","pid":"0","type":"asdas","code":"asd","status":"1"}, {"id":"17","pid":"0","type":"my check","code":"mt","status":"1"} ]; $.each(json,function(i,el) { alert(el.id+' - '+el.type); });
Here this dumb example works
EDIT:
As enoyhs said this can also be achieved with pure javascript, which would be a faster solution. Here is the benchmark for loops in javascript vs jQuery:
Dalen source share