Json Array With JS

by Prabakaran 2011-10-12 15:10:06



var head = { "data" : [ { "name" : "Ram", "place" : "Coimbatore" },
{ "name" : "Azar", "place" : "Chennai" },
{ "name" : "Peter", "place" : "Trichy" }
],
}
for(var i=0; i<=head.data.length; i++)
{
document.writeln(head.data[i].name + '===> ' + head.data[i].place);
}

Tagged in:

942
like
0
dislike
0
mail
flag

You must LOGIN to add comments