Can anyone get JSON.parse to work with their actua...
# javascript
k
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
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
Ya that makes sense, since the Kotlin->JS compiler maps method names directly