json = '{element1: "haha", element2: 123}'
d = eval(json)

print d['element1'], d.['element2']

2009/5/6 arnie <parvez...@rediffmail.com>

>
> I am getting a very simple json string that contains only 14 elements
> Can't we use python dictionary to extract the elements of json?
> Thanks
> Arnie
> >
>

--~--~---------~--~----~------------~-------~--~----~
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