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: