boodebr A little library from boodebr.org


files/feed-icon-14x14.png Recently Edited
boodebr.ion edit
frank, 03 August 2008 (created 03 October 2007)
Tags: ion json xml pickle
boodebr.ion is a serialization library. It follows the JSON (RFC 4627) data model, but can read & write either JSON or XML. In addition, it provides a simple hook system that implements full object pickling (within the limitations of RFC 4627) while remaining 100% JSON compatible.

Quick start:
from boodebr.ion import ionize, deionize

# pickle object 'obj' to/from JSON
json = ionize(obj) # 'json' is the default format
obj = deionize(json)

# pickle object 'obj' to/from XML
xml = ionize(obj, 'xml')
obj = deionize(xml)


Links: