kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
**What is your use-case and why do you need this feature?** Currently, a decoder is able of retrieving the element index to decode, that is really powerful when we want...
**Describe the bug** I made several attempts, but I failed to deserialize the JSON as expected. Every time, I encountered an exception error. I had to write my own serializer...
Hi team, I would like to start serializing a Flow of objects as they come in from a data source. But, when I try to use in this way, I...
**What is your use-case and why do you need this feature?** For example, in Compose code, one might want to save the user's custom theme by serializing `Color`s. These are...
**Describe the bug** If I try to optimize the application by disabling ``` # -dontoptimize ``` I get the following error: ```log Exception in thread "main" java.lang.VerifyError: Bad type on...
Kotlin 2.0.20 is expected to have a new MPP UUID class (https://youtrack.jetbrains.com/issue/KT-31880, https://github.com/JetBrains/kotlin/commit/25ea5e81af6a1e3638228498f0dea57b7efe5d15). It is reasonable to provide a built-in serializer for it, like we did for `kotlin.time.Duration` when it...
**Describe the bug** Since kotlinx.serialization 1.7.0, I'm unable to contribute as all the kotlin standard library is missing the completion, and/or have the standard library missing from the classpath, which...
The following code fails on compilation: ```kotlin @Serializable sealed class CTest { abstract val c: Collection @Serializable class AsList(override val c: List) : CTest() } @Test fun testSerialization() { val...
I am upgrading my project up to latest (currently) dependencies like Kotlin 2.0.0 and K/Serialization 1.7.0-RC and faced with the problem that compiler (or serialization plugin) do not see `serializer`...
**What is your use-case and why do you need this feature?** For the JSON format, do validation during deserialization is absolutely effecienct. Are there any plan or suggestion to complete...