I am trying to access JSONObjects in this Image link to the JSON code
I am trying to access the "lat" and "lng" as such:
"geometry": {
    "location": {
        "lat": 37.422258,
        "lng": -122.0840678
    }
}
I am using Java in this case. I tried using this:
JSONObject dataObj = obj.getJSONObject("location");
lat = dataObj.getString("lat");
lng = dataObj.getString("lng");
But I got no result. Any help would be appreciated.
 
     
     
     
     
    