Jython is great for creating custom data structures based on needs, but how to store their instances? Apparently, this is possible to do with help java.io.Serializable, but is ObjectStreamsnot human readable; I would prefer XML.
I naively tried XStream to serialize a simple object created in Jython and translated into Java using the method, PyObject __tojava__but the result was expected to be almost gibberish due to the heavy use of XStream reflection (it finds all the internal elements of Jython) - and deserialization does not work ( possibly due to dynamically loaded Jython proxy classes or some other implementation details that I'm really not familiar with.)
Is there something like XStream for Jython objects - maybe a Jython library?
source
share