If I’m reading it correctly, it looks like thats using JSON as a serialization format for converting to/from Strings.
I’m looking for a way to convert to/from objects of Kotlin/JS’s kotlin.js.Json type: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-json/index.html
Is there a way to do this? Am I just reading the example incorrectly?