Metadata-Version: 2.0
Name: fast-json
Version: 0.2.1
Summary: Combines best parts of json and ujson for fast serialization
Home-page: UNKNOWN
Author: Dmitry Orlov
Author-email: me@mosquito.su
License: Apache 2
Platform: all
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Dist: ujson

fast-json
=========

Combines best parts of json and ujson for fast serialization.

.. code-block:: python

    import fast_json

    print(
        fast_json.dumps({
            "foo": "bar",
             "now": datetime.datetime.now()
        })
    )

Serializing custom type
~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python

    import fast_json
    from collections import namedtuple


    MyType = namedtuple("MyType", ["name", "value"])


    @fast_json.convert.register(MyType)
    def _(value):
        return "name={0.name} value={0.value}".format(value)


    print(
        fast_json.dumps({
            "one": MyType(name="foo", value="bar")
        })
    )


