A different JSON parser for Python
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
Metadata
Release files for djson 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| djson-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for djson-0.1.1-py2.py3-none-any.whl |
Release files / djson-0.1.1-py2.py3-none-any.whl
| Download URL | djson-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9795ff144d2f49f92572c324a2796c80d3a7fc4ffc7f091f300792bda8a079f2
|
|
BLAKE2b-256 checksum How to use checksums |
ce38fece67a3efd136aa6858fcf429dfc8994d8b25862d17fca25cc61341ca1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for djson 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.