each loop for json data in jquery code example
Example 1: loop json jquery
$.map(mapArray, function(val, key) {
alert("Value is :" + val);
alert("key is :" + key);
});
Example 2: jquery loop through json
var someObj = { foo: "bar"};
$.each(someObj, function(propName, propVal) {
console.log(propName, propVal);
});