{
"response": [
{
  "address": {
    "features": {
        ..........
    },
    "loc": {
      "latitude": 27.32423423423,
      "longitude": -84.0342423429
    },
    "blah1": "blah",
    "blah2": "blah",
    "stuff": {
      "stuff2": "stuff",
      "stuff3": "stuff"
    },
    "data": {
      .....
      },
      "interesting": {
        ...
      }
    },
    "l": null,
    "u": null
  },
  "a": null,
  "b": 0,
  "c": {
    ....
  },
  "d": "test",
  "type": null,
  "id": 53,
  "metadata": {
    ....
  },
  "asset": {
    "pack": [
      {
      ....
      }
    ]
  },
  "k": null,
  "z": null,
  "f": null
}
]}
Is there a way to get values from keys: "latitude" and "longitude" from "loc" and store them in global variables (in java) in a quick and efficient matter without having to loop through the JSONArray?
When I try loop through the JSON array, the variables that would hold the values for those keys would not be accessible outside the loop.
 
    