我要教化JSON
[
{
"food": [
{
"name": "pasta",
"price": 14.50,
"quantity": 20
},
{
"name": "soup",
"price": 6.50,
"quantity": 4
}
]
},
{
"food": [
{
"name": "salad",
"price": 2.50,
"quantity": 3
},
{
"name": "pizza",
"price": 4.50,
"quantity": 2
}
]
}
]
How can I get elements from the JSON like each array and element from each array. I have more bigger JSON than this. Line by line parsing of which takes several minutes. Any solution to do it faster.
Expecting link of org JSON util or such and some code for how to use it