views:

134

answers:

2

json module was added in python 2.6 but GAE supports 2.5 only.

How can I use it there?

+2  A: 

Well you wotn be able to use the standard python library, you will have to use some third party lib such as

At least simplejson works on python 2.4

hhafez
Ok, now complementary question, how can I use it? I mean, how do I bundle this module with my app ( I'm starting with python as you can see )
OscarRyz
I've never done it before, but you GAE does give you the ability to add your own modules,have a look at the GAE FAQ, http://code.google.com/appengine/kb/commontasks.html they describe how it is done there
hhafez
Great, looking at it. I also create a question specifically for this http://stackoverflow.com/questions/2511883/bundle-module-with-app-on-google-app-engine
OscarRyz
A: 

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}]
mykhal