skip to navigation
skip to content

jsonext 0.4

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

Package Documentation

Latest Version: 0.4.2

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

>>> import jsonext
>>> from datetime import datetime
>>> jsonext.dumps(
>>> 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.

File Type Py Version Uploaded on Size
jsonext-0.4.tar.gz (md5, pgp) Source 2014-03-22 2KB