Re: Understanding JSON

2009-03-29 Thread WallyDD
On Mar 29, 4:58 pm, Chris Rebert wrote: > On Sun, Mar 29, 2009 at 1:39 PM, WallyDD wrote: > > Hello, > > > I am trying to geocode some map data using the google maps API. > > > By using the urllib I can get the JSON output; > >http://maps.google.com/maps/geo?q=New+York+USA&output=json&oe=utf8&se.

Re: Understanding JSON

2009-03-29 Thread Chris Rebert
On Sun, Mar 29, 2009 at 1:39 PM, WallyDD wrote: > Hello, > > I am trying to geocode some map data using the google maps API. > > By using the urllib I can get the JSON output; > http://maps.google.com/maps/geo?q=New+York+USA&output=json&oe=utf8&sensor=true&key=your_api_key > > I then read it using

Understanding JSON

2009-03-29 Thread WallyDD
Hello, I am trying to geocode some map data using the google maps API. By using the urllib I can get the JSON output; http://maps.google.com/maps/geo?q=New+York+USA&output=json&oe=utf8&sensor=true&key=your_api_key I then read it using; gmapiresult = json.loads(fg.read()) somedata = gmapiresult['