It seems clear today that kotlinx.serialization is the chosen one.
Among all the many libraries to parse JSON with Kotlin in Android. Say… Klaxon, Jackson, Gson, Json2kotlin, etc. kotlinx.serialization is presently attested champion.
There’s no doubt kotlinx.serialization is the future as it is part of Kotlin libraries now. Although it is still at the time of writing this post in incubator stage.
Unlike iOS,
where Swift is overtaking Objective-C rapidly and the momentum is clear. In the
Android world, presently, the language option is not that clear.
Yes, Kotlin is
there, new, coming forward, garden-fresh, 21-century ready but it isn’t ultimately
taking off, not as expected.
Kotlin was first
introduced by JetBrains in 2011, which is the creator of IntelliJ IDEA,
PyCharm, and many other top IDEs. It got its name from ‘Kotlin Island’ in St.
Petersburg, Russia. Made to strike Java.
That said, the
dominance of Java is still immense, the number of libraries, APIs, code
generally speaking is humongous. Not to mention the readability of it, the many
algorithms and things done or thought already in Java, yeah… Simple as it
sounds, it’s hard to break a solid present for a “uncertain” bright future.