Does Kotlin (JVM) have any Python-Pickle-like framework for serializing any object?


#1

Hello everyone,

Kotlin syntax is very nice for JVM language, so I think that it may be even possible to use Kotlin for data science purposes, but a problem suddenly arose from my experiment is that I cannot find any good way to save object in Kotlin. At the moment, I am using the Java Serialize interface, but I do not like it since there are certain limitations to it like not being able to save BufferedImage. My question is if there is any good library for this reason?

Thank you.


#2

The real kotlin way for serialization is currently in development. But I think that in any case, you will have to create a wrapper class on top of your BufferedImage to allow automatic serialization.