Skip to content

Latest commit

 

History

History

serialization

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

klite-serialization

Allows using kotlinx-serialization to read and write objects. Json format is provided using JsonBody, but other formats may be added easily in the future.

Please add kotlinx-serialization and enable it's compiler plugin, and optionally kotlinx-datetime as dependencies of your own project.

Status

I rather recommend using jackson module instead.

A disadvantage of Kotlin Serialization is that you cannot register custom serializers globally, e.g. for java.util.UUID, etc and need to annotate them in every class or file.

See Kotlin/kotlinx.serialization#507