mirror of
https://github.com/not-kennethreitz/omnijson.git
synced 2026-06-05 23:20:19 +00:00
76bd9bf291cd4c45a763d3099ebe3bb98a0e4c8d
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
Languages
Python
100%