1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Metadata-Version: 1.0
Name: jsonext
Version: 0.4.2
Summary: Well-structured helpers to help serializing commonly encountered structures to JSON (like datetime, to_dict(), etc.
Home-page: http://github.com/mbr/jsonext
Author: Marc Brinkmann
Author-email: git@marcbrinkmann.de
License: MIT
Description: jsonext
=======
.. image:: https://travis-ci.org/mbr/jsonext.svg?branch=master
:target: https://travis-ci.org/mbr/jsonext
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 <http://pythonhosted
.org/jsonext>`_ for details.
Platform: UNKNOWN
|