I seem to be having some issues with serialization...
# javascript
s
I seem to be having some issues with serialization between JS objects and Kotlin maps/collections. I've been trying various tools in the kotlinx.serialization library to do stuff like this:
Copy code
@JsName("Request")
open external class JsRequest {
    ...
    @JsName("query")
    val queryJsonString: String
}

class Request : JsRequest() {
    val query: Map<String, Any>
        get() = JSON.parse(queryJsonString)
}