Notice!
PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities.
Create your free Platform account
to download ActivePython or customize Python with the packages you require and get automatic updates.
Download
ActivePython
INSTALL>
pypm install jsontree
How to install jsontree
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install jsontree
| Python 2.7 | Python 3.2 | Python 3.3 |
---|
Windows (32-bit) | | | |
---|
Windows (64-bit) | | | |
---|
Mac OS X (10.5+) | | | |
---|
Linux (32-bit) | | | |
---|
Linux (64-bit) | | | |
---|
Lastest release
version 0.4.3 on Aug 17th, 2013
Travis integration TBD
jsontree is a simple module for quickly building manipulating and modifying
rich json data in python.
Datetime objects are serialized out ti the ISO format which is easilly used
in javascript. ISO formatted datetime strings will be deserialized into
datetime objects.
System Message: ERROR/3 (<string>, line 13)
Unknown directive type "code".
.. code::
import jsontree
import datetime
data = jsontree.jsontree()
data.username = 'doug'
data.meta.date = datetime.datetime.now()
data.somethingelse = [1,2,3]
data['username'] == 'doug'
ser = jsontree.dumps(data)
backagain = jsontree.loads(ser)
cloned = jsontree.clone(data)