Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Fast JSON encoder/decoder for Python(fix bug for python-cjson)

Project description

fix this bug for cjson

>>>import cjson
>>>print cjson.encode({1:2})

Traceback (most recent call last):
File "test.py", line 11, in <module>
print cjson.encode({1:2})
EncodeError: JSON encodable dictionaries must have string/unicode keys


>>>import czjson
>>>print czjson.dumps({1:2})
{"1":2}

===========================================================

This module implements a very fast JSON encoder/decoder for Python.

JSON stands for JavaScript Object Notation and is a text based lightweight
data exchange format which is easy for humans to read/write and for machines
to parse/generate. JSON is completely language independent and has multiple
implementations in most of the programming languages, making it ideal for
data exchange and storage.

The module is written in C and it is up to 250 times faster when compared to
the other python JSON implementations which are written directly in python.
This speed gain varies with the complexity of the data and the operation and
is the the range of 10-200 times for encoding operations and in the range of
100-250 times for decoding operations.

Project details


Release history Release notifications

Download files

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

Files for czjson, version 1.0.8
Filename, size File type Python version Upload date Hashes
Filename, size czjson-1.0.8.tar.gz (11.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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