I query a REST API wihch can return different data types. I\'m trying to find an elegant way to parse the result into Kotlin object.
My current solution, which works: