Kotlin as dostupatsya to the properties of the json object through a point?

Kotlin as dostupatsya to the properties of the json object through a point? The object I returns node.js api. For http requests use the Fuel library. Write Android client. Thank you
July 2nd 19 at 13:49
1 answer
July 2nd 19 at 13:51
import com.fasterxml.jackson.module.kotlin.*

data class User(val id: Int, val name: String)

fun main(args: Array<string>) {
 val mapper = jacksonObjectMapper()
 val json = """{"id": 10, "name": "Kirill"}"""
 val user = mapper.readValue<user>(json)
println(user.name)
}</user></string>

Find more questions by tags AndroidKotlinJSONOOP