Category "kotlinx.serialization"

kotlinx.serialization.json.internal.JsonDecodingException: Polymorphic serializer was not found for missing class discriminator ('null')

I am using sealed class to handle api response. I am trying some code but getting some error of serialization. I tried this solution as well but it not working.

JSON Serialization / Deserialization Kotlin Android Jetpack Compose Table

I'm in the process of creating a table section in Jetpack Compose that deserializes the data from a JSON. At this point, I'm simply trying to display the data (

Why am I getting a JsonDecodingException exception in kotlinx.serialization?

I'm trying to create a custom deserializer using kotlinx.serialization but when I deerialize a JSON payload with null parameters, an exception kotlinx.serializa

Polymorphic deserialization of nested list object in Kotlin

Trying to deserialize a pretty complex json string, I've done simpler ones but am struggling with how to set this up. I've also found some examples on simple po