Metadata-Version: 2.0
Name: djson
Version: 0.1.1
Summary: A different JSON parser for Python.
Home-page: https://github.com/damnever/djson
Author: damnever
Author-email: dxc.wolf@gmail.com
License: The BSD 3-Clause License
Keywords: djson,good,json
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3

A different JSON parser for Python
==================================

.. image:: https://img.shields.io/travis/damnever/djson.svg?style=flat-square
    :target: https://travis-ci.org/damnever/djson

.. image:: https://img.shields.io/pypi/v/djson.svg?style=flat-square
    :target: https://pypi.python.org/pypi/djson


WTF
---

-_-# :

.. code:: python

    import json
    json.loads(r"""{"a": "good", 123: "fuck!", false: "fuck!!", null: "fuck!!!"}""")



^_^ :

.. code:: python

    import djson
    djson.loads(r"""{"a": "good", 123: "well done!", true: "excellent!!", null: "I love djson!!!"}""")



Installation
------------

    pip install djson



APIs
----

 - load(str) -> dict()
 - loads(file) -> dict(): file is a iterable file-like object.
 - dump(obj, file=sys.stdout, encoder=JSONEncoder): Rewrite JOSNEncoder to support custom object. **NOTE**: returned string must like this: ``'"string"'``.
 - dumps(obj, encoder=JSONEncoder) -> str


Examples
--------

See `examples/ <https://github.com/Damnever/djson/tree/master/examples>`_


LICENSE
-------

`The BSD 3-Clause License <https://github.com/Damnever/pigar/blob/master/LICENSE>`_


