Answers for "iterate json object array in javascript"

1

javaScript loop json array

var people = [{
    "name" : "Darren", 
    "age" : "24",
    "gender"   : "Male",
    
},{
    "name" : "Mai", 
    "age" : "28",
    "gender"   : "Female",
    
}];

for(var i = 0; i < people.length; i++) {
    var person = people[i];

    console.log('Name: '+person.name+' Age:'+person.age);
}
Posted by: Guest on July-22-2021
0

iterate json object array in javascript

//Iterate through arraylist object and put it to a separate array object
$.each(arrayListOutput,function(i,v){
_temp=[];
_temp.push(arrayListOutput[i][0]);

});
Posted by: Guest on June-15-2021

Code answers related to "iterate json object array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language