title: Get multiple Objects from Json Android
body: <p>I want to get data from this but its to confusing, how to do it.
  I want to access legs. In legs distance then text.
  Then after steps, in steps again distance and then text.</p>
  
  <p>In "routes" ==> "legs" --> distance --> text</p>
  
  <p>Then to get driving steps 
  "routes" ==> "legs" ==> "steps" --> distance --> text</p>
  
  <p>First there is object then array again object its too confusing. Any help would be appreciated.</p>
  
  <pre><code>{
         "geocoded_waypoints" : [
            {
               "geocoder_status" : "OK",
               "place_id" : "ChIJ2QeB5YMEGTkRYiR-zGy-OsI",
               "types" : [ "locality", "political" ]
            },
            {
               "geocoder_status" : "OK",
               "place_id" : "ChIJ2afeeFcxOzkRL9RVTscv17o",
               "types" : [ "locality", "political" ]
            }
         ],
         "routes" : [
            {
               "bounds" : {
                  "northeast" : {
                     "lat" : 31.55462439999999,
                     "lng" : 74.3571711
                  },
                  "southwest" : {
                     "lat" : 30.1981178,
                     "lng" : 71.4687352
                  }
               },
               "copyrights" : "Map data ©2016 Google",
               "legs" : [
                  {
                     "distance" : {
                        "text" : "348 km",
                        "value" : 347978
                     },
                     "duration" : {
                        "text" : "4 hours 49 mins",
                        "value" : 17335
                     },
                     "end_address" : "Multan, Pakistan",
                     "end_location" : {
                        "lat" : 30.1981178,
                        "lng" : 71.4687352
                     },
                     "start_address" : "Lahore, Pakistan",
                     "start_location" : {
                        "lat" : 31.55462439999999,
                        "lng" : 74.3571711
                     },
                     "steps" : [
                        {
                           "distance" : {
                              "text" : "67 m",
                              "value" : 67
                           },
                           "duration" : {
                              "text" : "1 min",
                              "value" : 9
                           },
                           "end_location" : {
                              "lat" : 31.5549532,
                              "lng" : 74.3565735
                           },
                           "html_instructions" : "Head \u003cb\u003enorthwest\u003c/b\u003e on \u003cb\u003eAllama Iqbal Rd\u003c/b\u003e",
                           "polyline" : {
                              "points" : "k_r_Ei{ydM[r@e@bA"
                           },
                           "start_location" : {
                              "lat" : 31.55462439999999,
                              "lng" : 74.3571711
                           },
                           "travel_mode" : "DRIVING"
                        },
  </code></pre>