Robert Jaros
11/25/2020, 2:31 PM@JsExport
data class Test(val content: String)
val json = "{\"content\":\"data\"}"
val test = kotlin.js.JSON.parse<Test>(json)
println(test.content)
Property is undefined
, no matter if I use @JsExport
or not. It works fine with legacy and the only workaround for IR seems to be parse<dynamic>()
. Is this a known issue? Can't find anything on YT.Robert Jaros
11/25/2020, 2:39 PMJSON
with Kotlin types anymore, since the returned object always just pretended to be a Kotlin data class?Robert Jaros
11/25/2020, 2:40 PM