/ Published in: jQuery
URL: http://stackoverflow.com/questions/733314/jquery-loop-over-json-result-from-ajax-success
You have an array of objects/maps so the outer loop loops through those. The inner loop loops through the properties on each object element.
Expand |
Embed | Plain Text
$.each(data, function() { $.each(this, function(k, v) { /// do stuff }); });
Comments
Subscribe to comments
You need to login to post a comment.

Usage example:
#
JSON Data Array :
#
Array ( [0] => Array ( [name] => Silver Cinemas - Bell Road [loc] => 2710 West Bell Road Suite 1125, Phoenix, AZ - (602) 212-6743 [movies] => Array ( [0] => Array ( [name] => The Social Network [times] => 3:25pm [idate] => )
#