Is there an elegant way to convert a `JsonObject` ...
# tornadofx
h
Is there an elegant way to convert a
JsonObject
into a Kotlin (data) object? Example uses
resources.jsonArray()
in a
View
.
Copy code
val _countries = resources.jsonArray("european-countries.json").apply {
    println(this[0]) // {"area_km2":"28748","capital":"Tirana","country":"Albania","eu_member":false,"population":"2994667"}
}