Kotlinx Serialization - Getting Started
Kotlin serialization is kotlin-first, compile-time, type-safe, reflection-free and completely multi-platform ready serialization mechanism to convert kotlin objects into data formats like JSON or Protobuf and vice-versa. It is comprised of a compiler plugin which is used to generate code for serializable classes and a runtime library, containing core classes and primitives for serialization & IO, among some other things.
While JSON format is supported out of the box by the library, there’s first-class support for other formats like Protobuf & CBOR, with the option to extend the functionality by writing your own library to support any other format.
The effort was first announced in October 2016, where @elizarov posted about the team’s efforts on “working on a generic Kotlin Serialization facility for some future release of Kotlin”. You can know more about the design, goals and core concepts of kotlin serialization by going through this KEEP.
Hope it helps!
Originally posted on Medium link