Skip to main content
Help us improve Python packaging – donate today!

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/

Release history Release notifications

This version
History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
djson-0.1.1-py2.py3-none-any.whl (8.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jul 29, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page