Arnie,
I'm assuming you want to iterate over the json in Python?

Once you get the json string converted to a Python dictionary using
simplejson, you can use the dictionary's iteritems() method to iterate
over it in a python forloop like so:


from django.utils import simplejson

#jsonStr is your json string in Python
#convert to dict using simplejson:

jsonAsDict = simplejson.loads( jsonStr )
#jsonAsDict is now a python dict object

for i in jsonAsDict.iteritems():
   i[0] #is the key
   i[1] #is the value

Hope that helps.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to