Getting started with json

I have never worked with json before. I try: http://api.worldbank.org//topics?format=JSON and do everything with it, but I don’t even know how to start.

Following some guidelines, I did this:

import urllib
import urllib2
import simplejson
urlb = 'http://api.worldbank.org/topics'
datab = urllib2.urlopen(urlb+'?'+ param)
resultb = simplejson.load(datab)

but I have no idea how to parse and work on it now, how can I list the individual elements? count them? filter them ?. Is there any simple tutorial that you guys can point me to or advise? I checked diveintopython, the json site and most of the obvious ones, but I'm still struggling with it. Is there any simple step-by-step guide I can visit?

thank

0
source share
1 answer

b. python . , .

+4

All Articles