Re: parsing json data

2009-11-30 Thread John Bokma
f...@mauve.rahul.net (Edward A. Falk) wrote: > There's a json parsing library in 2.6. (Sadly, 2.6 is not out for > Ubuntu yet.) Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 on Ubuntu 9.04 John -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing json data

2009-11-30 Thread Edward A. Falk
There's a json parsing library in 2.6. (Sadly, 2.6 is not out for Ubuntu yet.) -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing json data

2009-11-27 Thread Jon Clements
On 27 Nov, 13:52, jujulj wrote: > Hi, > > I get the data shown below from the json geonames web service. > What's the best way to get the name value of the alternateNames with a > given lang value? > Do I have to loop in the array to find it? > > thanks > > {u'adminCode1': u'09', >  u'adminName1':

parsing json data

2009-11-27 Thread jujulj
Hi, I get the data shown below from the json geonames web service. What's the best way to get the name value of the alternateNames with a given lang value? Do I have to loop in the array to find it? thanks {u'adminCode1': u'09', u'adminName1': u'The Federal District', u'adminName2': u'', u'a