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!!!"}""")
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.0-py2.py3-none-any.whl
.
File metadata
- Download URL: djson-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e336d0405cbc043fa8576107d366a57ff23b880bc045293482b3b2c4aad549e0 |
|
MD5 | 7d15d7490ba281cc939f5ac7c08dcb99 |
|
BLAKE2b-256 | 1434d8d529e88b92c440eb8e9407e0a375e116c320ec3511d45b8cd4cf530bf9 |