Files
omnijson/README.rst
T
Kenneth Reitz 4fecd1f16c name change
2011-06-18 12:01:11 -04:00

36 lines
755 B
ReStructuredText

OmniJSON
========
The Problem
-----------
::
# Python 2.5.4 (r254:67916, Jun 24 2010, 21:47:25)
>>> import anyjson
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/kreitz/.virtualenvs/25/lib/python2.5/site-packages/anyjson/__init__.py", line 127, in <module>
raise ImportError("No supported JSON module found")
ImportError: No supported JSON module found
The Solution
------------
::
# Python 2.5.4 (r254:67916, Jun 24 2010, 21:47:25)
>>> import omnijson as json
# \o/
Features
--------
- Loads whichever is the fastest JSON module installed
- Falls back on built in pure-python simplejson, just in case.
- Proper API (``loads()``, ``dumps()``)
- Verndorizable