[Sugar-devel] How to serialize objects?

Behavior Vehikel b.vehikel at googlemail.com
Tue Mar 17 15:21:12 EDT 2009


at the moment I am learning  to implement a Sugar activity. In the
Sucrose 0.84 release notes
there is a short paragraph about serializing and de-serializing a
Python object structure.
Should I use cjson for saving the state of my activity?
Where can I find sample code?

In a former project (outside of Sugar) I used pickle for object
serializing and de-serializing. Is better for compatibility to use
cjson instead of pickle? One advantage of json is its human readable
output. But why is object serializing not done in XML?

best regards


More information about the Sugar-devel mailing list