Search found 3 matches

by evreeland
Sun Nov 28, 2010 5:57 pm
Forum: PHP - Code
Topic: Trouble w json_decode
Replies: 6
Views: 165

Re: Trouble w json_decode

This is the vardump The php error is Message: Undefined index: types array(2) { ["status"]=> string(2) "OK" ["results"]=> array(1) { [0]=> array(4) { ["types"]=> array(1) { [0]=> string(14) "street_address" } ["formatted_address"]=> string(...
by evreeland
Sun Nov 28, 2010 12:11 pm
Forum: PHP - Code
Topic: Trouble w json_decode
Replies: 6
Views: 165

Re: Trouble w json_decode

It's one long string of the resulting json file from the Google Maps API { "status": "OK", "results": [ { "types": [ "street_address" ], "formatted_address": "13209 Dobbins Pl, Los Angeles, CA 90049, USA", "address_components...
by evreeland
Sun Nov 28, 2010 2:15 am
Forum: PHP - Code
Topic: Trouble w json_decode
Replies: 6
Views: 165

Trouble w json_decode

I am trying to parse a json file I'm getting via http request from the Google Geocoding API http://code.google.com/apis/maps/documentation/geocoding/ Here is my php but for some reason I am having trouble accessing the array. For some reason the var_dump function is returning one long string instead...