Results 1 to 4 of 4

Thread: READ json file

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,939

    READ json file

    How to read alla node in this json string:

    Code:
    {
       "results" : 
       [
          {
             "address_components" : 
             [
                {
                   "long_name" : "7",
                   "short_name" : "7",
                   "types" : 
                   [
                      "street_number"
                   ]
                },
                {
                   "long_name" : "Via Toledo",
                   "short_name" : "Via Toledo",
                   "types" : 
                   [
                      "route"
                   ]
                },
                {
                   "long_name" : "Napoli",
                   "short_name" : "Napoli",
                   "types" : 
                   [
                      "locality",
                      "political"
                   ]
                },
                {
                   "long_name" : "Napoli",
                   "short_name" : "Napoli",
                   "types" : 
                   [
                      "administrative_area_level_3",
                      "political"
                   ]
                },
                {
                   "long_name" : "Città Metropolitana di Napoli",
                   "short_name" : "NA",
                   "types" : 
                   [
                      "administrative_area_level_2",
                      "political"
                   ]
                },
                {
                   "long_name" : "Campania",
                   "short_name" : "Campania",
                   "types" : 
                   [
                      "administrative_area_level_1",
                      "political"
                   ]
                },
                {
                   "long_name" : "Italia",
                   "short_name" : "IT",
                   "types" : 
                   [
                      "country",
                      "political"
                   ]
                },
                {
                   "long_name" : "80134",
                   "short_name" : "80134",
                   "types" : 
                   [
                      "postal_code"
                   ]
                }
             ],
             "formatted_address" : "Via Toledo, 7, 80134 Napoli NA, Italia",
             "geometry" : 
             {
                "location" : 
                {
                   "lat" : 40.84798,
                   "lng" : 14.2496255
                },
                "location_type" : "ROOFTOP",
                "viewport" : 
                {
                   "northeast" : 
                   {
                      "lat" : 40.8493328802915,
                      "lng" : 14.2509291302915
                   },
                   "southwest" : 
                   {
                      "lat" : 40.8466349197085,
                      "lng" : 14.2482311697085
                   }
                }
             },
             "navigation_points" : 
             [
                {
                   "location" : 
                   {
                      "latitude" : 40.8479807,
                      "longitude" : 14.2496175
                   }
                }
             ],
             "place_id" : "ChIJeZ7gn1wIOxMR6fvfZkrDK4E",
             "types" : 
             [
                "street_address",
                "subpremise"
             ]
          }
       ],
       "status" : "OK"
    }
    Attached Files Attached Files
    Last edited by dday9; Today at 11:48 AM. Reason: Added code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width