A different JSON parser for Python.
Project description
WTF
-_-# :
import json
json.loads(r"""{"a": "good", 123: "fuck!", false: "fuck!!", null: "fuck!!!"}""")
^_^ :
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/
LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file djson-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: djson-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9795ff144d2f49f92572c324a2796c80d3a7fc4ffc7f091f300792bda8a079f2 |
|
MD5 | c94d2b53d2b282809e029db2b2c1950a |
|
BLAKE2b-256 | ce38fece67a3efd136aa6858fcf429dfc8994d8b25862d17fca25cc61341ca1a |