{
"people": [
{
"name": "Jack",
"age": 15
},
{
"name": "Tony",
"age": 23
},
{
"name": "Mike",
"age": 19
}
]
}
Thats a sample of the json I'm trying to parse through. I want to be able to do a foreach operation on each person and println their name and age.
I know how to handle json arrays when it's a single item or a specific numbered item. I don't know how to iterate through all items.
Can anyone help me out?