Deserialize in a different language

前端 未结 6 1727
無奈伤痛
無奈伤痛 2021-01-02 21:46

The log4j network adapter sends events as a serialised java object. I would like to be able to capture this object and deserialise it in a different language (python). Is th

6条回答
  •  时光说笑
    2021-01-02 21:55

    If you can have a JVM on the receiving side and the class definitions for the serialized data, and you only want to use Python and no other language, then you may use Jython:

    • you would deserialize what you received using the correct Java methods
    • and then you process what you get with you Python code

提交回复
热议问题