Kotlin has recently released a library for serialization. To put things in perspective, before this there was…