I'm struggling to find a way to cut down this JSON array so I can use the values remaining. Below is what's returned to me from the API I'm fetching and I'm looking to remove the excess so I just have an array with the LGA results. Really unsure where to even start.
{
"query": {
"offence": "Dangerous Operation of a Vehicle",
"area": "",
"age": "",
"year": "",
"gender": ""
},
"result": [
{
"LGA": "Aurukun Shire Council",
"total": 156,
"lat": -13.354875,
"lng": 141.729058
},
{
"LGA": "Balonne Shire Council",
"total": 99,
"lat": -28.464607,
"lng": 148.189292
},
{
"LGA": "Yarrabah Shire Council",
"total": 28,
"lat": -16.910135,
"lng": 145.868659
}
]
}
