Hello guys, i'm new to kotlin, right now to parse ...
# klaxon
a
Hello guys, i'm new to kotlin, right now to parse json into some class stored in variable i need to parse it as JsonObject first and then parse again from JsonObject like this:
Copy code
val data = jv.obj?.obj("data") as JsonObject
Klaxon().fromJsonObject(data, clazz.java, clazz)
Is there any better way to do this?