Can anyone get JSON.parse to work with their actual/expect classes or is it impossible?
It doesn’t seem like you can have a cross JVM-JS JSON.
j
jean
03/18/2018, 8:48 PM
No. I cast JSON.parse result to a Kotlin class. But the Kotlin class neither cannot be a data class nor it can have any methods. I.e. only: class Person(val name: String)
k
krtko
03/19/2018, 1:14 AM
Ya that makes sense, since the Kotlin->JS compiler maps method names directly