Sounds like you want something that reads and writes JSON from Kotlin data classes. You might want to have a look at Jackson (GitHub - FasterXML/jackson-module-kotlin: Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.). Klaxon (GitHub - cbeust/klaxon: A JSON parser for Kotlin) also seems to have good support for “rendering” Kotlin classes to JSON, but nothing automatic for the reverse.