I have a JSON array ( partial data).
{
"person1": { "firstName": "Joe", "lastName":"Dutonz"},
"person2": { "firstName": "Joe", "lastName":"Foo"},
etc
}
The requirement is to loop through the JSON array and display all the firstName of the people data.
$.getJSON("people.json", function(obj)
{
loop through people data and display firstName
});
Using jQuery how to fetch firstName?