-_-# :
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!!!"}""")
pip install djson
- load(file) -> dict(): file is a iterable file-like object.
- loads(str) -> dict()
- 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
See examples/