title: Traverse Multi-Level JSON Object in Java Google Maps
body: <p>I'm current calling the <a href="http://maps.googleapis.com/maps/api/directions/json?origin=Irvine,CA&amp;destination=Los%20Angeles,CA&amp;sensor=false" rel="nofollow">link</a> in my Android project.  </p>
  
  <p>How can I traverse the array that looks like this to get duration.text?  </p>
  
  <p>I currently have the base Json object and am trying to use <code>getJSONObject</code> and<code>getJSONArray</code> but not having any luck.  </p>
  
  <pre><code>{"routes" : 
  [
   {"legs" : [{"duration" : {"text" : "52 mins","value" : 3106 },
  </code></pre>