I feel dumb but I\'ve been looking around for this for a while. I\'m working with the google geocoder API and I need a bit of help with the json responses. Here is a JSONObje
I believe you'd need to use jsonObjectVariable.getJSONObject("location") which in turn returns another JSONObject.
You can then invoke getDouble("lng") or getDouble("lat") on that object.
E.g.
double lat = jsonObjectVariable.getJSONObject("location").getDouble("lat");