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!!!"}""")

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

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

If you're not sure about the file name format, learn more about wheel file names.

djson-0.1.1-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for djson-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9795ff144d2f49f92572c324a2796c80d3a7fc4ffc7f091f300792bda8a079f2
MD5 c94d2b53d2b282809e029db2b2c1950a
BLAKE2b-256 ce38fece67a3efd136aa6858fcf429dfc8994d8b25862d17fca25cc61341ca1a

See more details on using hashes here.

Supported by

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