Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

JSON encoder that aims to be fully compliant with specifications ECMA-262 and ECMA-404.

Project Description

JSON encoder fully compliant with the ECMA-262 and ECMA-404 specifications.


Support for all objects that the Python stdlib’s json.JSONEncoder can encode, plus:

  • datetime.datetime
  • datetime.time
  • decimal.Decimal

Works on Python 2.6, 2.7, 3.3. Probably works on 3.4 and 3.5 but I haven’t set up tests for those with Tox yet.


Use StandardJSONEncoder as you would use json.JSONEncoder from the Python standard library:

>>> import datetime
>>> import json
>>> from standardjson import StandardJSONEncoder

>>> json.dumps({'day':, 2, 17)}, cls=StandardJSONEncoder)
'{"day": "2010-02-17"}'


0.3.1 (2014-05-21)

  • Full rename to standardjson (missed some files in 0.3.0).

0.3.0 (2014-05-21)

  • Rename package to standardjson.
  • StandardJSONEncoder is now in encoders module.
  • Encoder functions are now in encoder_funcs module.

0.2.0 (2014-05-20)

  • Full implementation with tests.
  • Separate encoders module for encoder functions.
  • Bump to Alpha.

0.1.0 (2014-05-18)

  • First release on PyPI.
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
standardjson-0.3.1-py2.py3-none-any.whl (4.8 kB) Copy SHA256 Checksum SHA256 2.7 Wheel May 21, 2014
standardjson-0.3.1.tar.gz (12.6 kB) Copy SHA256 Checksum SHA256 Source May 21, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting