Chris Dutrow
Chris Dutrow

Reputation: 50362

Use simplejson with Python 2.7 on GAE

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!

Upvotes: 1

Views: 1858

Answers (1)

Emlyn O'Regan
Emlyn O'Regan

Reputation: 462

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

import json as simplejson

Upvotes: 2

Related Questions