python-ecjson

Fast JSON encoder/decoder for Python based on the excellent CJSON with an extension


License
Other
Install
pip install python-ecjson==1.0.1

Documentation

ecjson

An enhanced/modded version of the cjson package. This package will return the output of _as_javascript function if defined on an object it is serializing to JSON. If it does not exist, it is standard CJSON

Example

class Foo(object):
    def _as_javascript():
        return "This is my JSON value"