Skip to main content

A different JSON parser for Python.

Project description

https://img.shields.io/travis/damnever/djson.svg?style=flat-square https://img.shields.io/pypi/v/djson.svg?style=flat-square

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

The BSD 3-Clause License

Project details


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

djson-0.1.0-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file djson-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for djson-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e336d0405cbc043fa8576107d366a57ff23b880bc045293482b3b2c4aad549e0
MD5 7d15d7490ba281cc939f5ac7c08dcb99
BLAKE2b-256 1434d8d529e88b92c440eb8e9407e0a375e116c320ec3511d45b8cd4cf530bf9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page