I have the following JSON and I'm only interested in getting the elements "status"
, "lat"
and "lng"
.
Using Gson, is it possible to parse this JSON to get those values without creating the whole classes structure representing the JSON content?
JSON:
{
"result": {
"geometry": {
"location": {
"lat": 45.80355369999999,
"lng": 15.9363229
}
}
},
"status": "OK"
}
See Question&Answers more detail:os