
Implementation ":kotlinx-serialization-runtime:0.20.0"Ĭlasspath ":kotlin-serialization:$kotlin_version"Ĭheck out the official doc for the latest runtime version. You would need to modify your adle a bit, but after that is super easy. Kotlin's own way is a compiler plugin with a runtime dependency. And Kotlin, since version 1.3, provides its own way way for serializing to and from JSON (and other formats, like protobuf - maybe in another post). There are other modern JSON libraries out there (e.g. But lately, especially with Kotlin's null-aware type system, the library fell out of grace.


In the past, this used to be the Gson library. In Android (and in the Java world in general) this was traditionally "outsourced" to a dedicated library. So you want to quickly convert your Data classes to JSON and vice-versa.
