skip to navigation
skip to content

jsontree 0.4.3

Utility class for managing json tree data as python objects. Recursive depth dictionaries with keys as attributes and json serialization.

Package Documentation

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.

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)
 
File Type Py Version Uploaded on Size
jsontree-0.4.3.tar.gz (md5) Source 2013-08-16 9KB