title: How do I access a JSONObject subfield?
body: <p>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 JSONObject that I have:</p>
  
  <pre><code>{
  "viewport": {
      "southwest": {
          "lng": -78.9233749802915,
          "lat": 36.00696951970851
      },
      "northeast": {
          "lng": -78.92067701970849,
          "lat": 36.0096674802915
      }
  },
  "location_type": "ROOFTOP",
  "location": {
      "lng": -78.922026,
      "lat": 36.0083185
  }
  }
  </code></pre>
  
  <p>How do I pull the "location" subfields out into their own variables?  I tried <code>jsonObjectVariable.getString("location");</code> and <code>jsonObjectVariable.getDouble()</code> etc. but it's not returning correctly.  What do you call a subfield in a json object?  I've read that you can access subfields with the object.subobject syntax but I'm just not getting what I need.  </p>
  
  <p>(I'm using json-org as the library)</p>
  
  <p>Thanks for the help!</p>