I’ve got a third-party library that returns/accept...
# serialization
x
I’ve got a third-party library that returns/accepts
jakarta.json.JsonStructure
objects. Rather than having to navigate/generate these, is there a way to (de)serialize them from/into a data class instances using kotlinx.serialization (without having to write a custom Encoder/Decoder)?
e
you could convert them to/from https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/ then use the usual kotlinx-serialization-json API