title: DELPHI Google GEOCODE Json parser
body: <p>Using google geocode API, when i using PHP i can do with this:</p>
  
  <pre><code>$request = file_get_contents("https://maps.googleapis.com/maps/api/geocode/json?latlng=-6.408107,107.468262&amp;key=AIzaSyCUzlhl-ibUJsKCwWDwsZqjiW7EP_On30g&amp;sensor=false");
  $json = json_decode($request, true);
  echo $json['results'][0]['address_components'][0]['long_name'];
  echo $json['results'][0]['address_components'][1]['long_name'];
  </code></pre>
  
  <p>now, how do it on DELPHI? i try this but got EXCEPTION</p>
  
  <pre><code>  myjson:=RESTResponse1.Content;
    JSONObject := TJSONObject.ParseJSONValue(myjson) as TJSONObject;
    JSONObject2 := JSONObject.GetValue('results') as TJSONObject;
    arrayjson := JSONObject2.GetValue('address_components') as TJSONArray;
    currcond := arrayjson.Items[0] as TJSONObject;
    showmessage(currcond.GetValue('long_name').Value);
  </code></pre>