Rootbuzz/JSONate — Issue #2: problems with Python 2.5, no module named json
Author: newz2000
Created: 2011-10-10 21:52:41+00:00
State: open

I get this error on Python 2.5:

```python
>>> from jsonate.decorators import jsonate_request
Traceback (most recent call last):
File "", line 1, in
File ".../virtualenv/lib/python2.5/site-packages/jsonate/__init__.py", line 1, in
from jsonate.utils import jsonate
File ".../virtualenv/lib/python2.5/site-packages/jsonate/utils.py", line 1, in
import json
ImportError: No module named json
```

When I edit jsonage/utils.py and change:

```python
import json
```

to

```python
import simplejson as json
```

then it works. Don't know if this is possible to fix so that it works in a way that works across versions.

By the way, jsonate is excellent, it's exactly what I needed, thanks for making it.