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

Well-structured helpers to help serializing commonly encountered structures to JSON (like datetime, to_dict(), etc.

Project Description

https://travis-ci.org/mbr/jsonext.svg?branch=master

jsonext makes it easy to serialize objects outside of the standard Python primitives to JSON:

>>> import jsonext
>>> from datetime import datetime
>>> jsonext.dumps(datetime.now())
'"2014-03-22T22:17:18.304528+00:00"'
>>> jsonext.dumps(i**2 for i in range(10))
'[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]'

It uses mixins to the standard encoder to achieve this and is easily reuse- and extensible. Check out the documentation for details.

Release history Release notifications

This version
History Node

0.4.2

History Node

0.4.1

History Node

0.4

History Node

0.4dev

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
jsonext-0.4.2.tar.gz (9.6 kB) Copy SHA256 hash SHA256 Source None Aug 28, 2017

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