![Kotlin serializable](https://cdn1.cdnme.se/5447227/9-3/2_64e61dfa9606ee7f98e9879b.png)
![kotlin serializable kotlin serializable](https://itzone.com.vn/wp-content/uploads/2021/03/a41ce737-9460-4358-a223-6c79d63e352e.png)
So the only solution that worked for me was to use the still beta version 0.20.0 of the Kotlinx Serialization library.
![kotlin serializable kotlin serializable](https://i.ytimg.com/vi/WFAZAM6FWPM/maxresdefault.jpg)
Importing the library into Gradle was a nightmare on my new Android project running Gradle 6.7, also thanks in part to duplicate class errors with Jake Wharton’s Retrofit Kotlinx Serialization Converter which I’m also using because you know, Retrofit. While that may be the case in pure Kotlin or Kotlin Multiplatform projects, I wouldn’t be so sure for Android. In fact, the first stable version of the library 1.0 was released just last month!Īnd it is now viable for use in production code!…. Kotlinx Serialization isn’t a name I’ve heard until quite recently. Of course, I needed to learn it first before benchmarking it against Jackson-Kotlin, so hey here’s another Getting Started post.
![kotlin serializable kotlin serializable](https://developer.android.google.cn/codelabs/taking-advantage-of-kotlin/img/cf230175189cdf67.png)
I had only come across this for the first time in my initial research about the JSON Parsers about a month ago. And from the suggestions of my fellow Reddit guys in r/androiddev, why not benchmark Kotlinx Serialization too? However, what I didn’t test was the Jackson Kotlin module. If you’re interested, read the full article below:īenchmarking Gson vs Jackson vs Moshi 2020 A couple weeks ago, I benchmarked Gson, Jackson, and Moshi against each other.
![Kotlin serializable](https://cdn1.cdnme.se/5447227/9-3/2_64e61dfa9606ee7f98e9879b.png)