Having trouble using simplejson with google app engine running Python 2.7.

Just switched from Python 2.5 on the Master/Slave datastore to Python 2.7 on the High Replication Datastore. This used to work:

from django.utils import simplejson

Now in order to use json, I can do this:

import json

However, I have a need to use simplejson. This works on the localhost debugger, but not on the server:

import simplejson

How can I use this library when running Python 2.7 on GAE?

Thanks!

有帮助吗?

解决方案

I think json and simplejson are now compatible. If you've got code using simplejson, you could try

import json as simplejson
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top