Possible Duplicate:
How can I parse JSON in Google App Engine?
json module was added in python 2.6 but GAE supports 2.5 only.
How can I use it there?
Well you wotn be able to use the standard python library, you will have to use some third party lib such as
- jyson or
- simplejson
At least simplejson works on python 2.4
You can try using yaml
module (which is included in GAE) as JSON parser. YAML in recent version is superset of JSON.
>>> import yaml
>>> yaml.load('[false, null, {"x": 1}]')
[False, None, {'x': 1}]
You can try using django.utils.simplejson
精彩评论