Is there any library to deserialize with python which is serialized with java

前端 未结 7 1394
野性不改
野性不改 2021-01-04 09:49

Is there any library to deserialize with python which is serialized with java?

7条回答
  •  粉色の甜心
    2021-01-04 10:39

    Java serialisation is a representation of the class/data structures and tightly tied to the virtual machine. Consequently that's going to be difficult to translate to the Python world.

    1. Your Java program can serialise/deserialise in XML, which would be translatable. Check out JAXB or XStream
    2. Have you looked at the possibility of running in Jython - the Python implementation in Java

提交回复
热议问题