Loop through a JSON Array in JQuery

Posted by kgovindarao523-21772 under jQuery category on | Points: 40 | Views : 1216

If we have a JSON array, and if we want to loop through that array, following one is the code in jquery.
var items=[{name:'ram',address:'Hyd'},

$.each(items, function(key,value) {
console.log(value.name +' lives in '+value.address);

Comments or Responses

Login to post response