[Sugar-devel] How to serialize objects?
Behavior Vehikel
b.vehikel at googlemail.com
Tue Mar 17 15:21:12 EDT 2009
Hi,
at the moment I am learning to implement a Sugar activity. In the
Sucrose 0.84 release notes
http://wiki.sugarlabs.org/go/DevelopmentTeam/Release/Releases/Sucrose/0.84#What_is_new_for_developers
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
Thomas
--
http://nostalghia.users.sourceforge.net/
More information about the Sugar-devel
mailing list