kotlinx.serialization icon indicating copy to clipboard operation
kotlinx.serialization copied to clipboard

Kotlin multiplatform / multi-format serialization

Results 460 kotlinx.serialization issues
Sort by recently updated
recently updated
newest added

When sealed class used as property inside other sealed class, serialization does not work. **To Reproduce** https://github.com/MEJIOMAH17/kotlinx-serialization-polymorph-bug/blob/master/src/test/kotlin/com/github/mejiomah17/kotlinx/serialization/Reproduce.kt Run test and get `kotlinx.serialization.SerializationException: Class 'Ax' is not registered for polymorphic serialization...

bug

**[UPD]:** When serialized classes are in one file, then the bug is not present. **Describe the bug** When a serialized class has two sealed superlcasses, it appears not registered. **To...

This code is impossible to deserialize: ``` @Serializable data class EditPromoCodeRequest( val code: String? = null, val owner: UserQuery? = null, ) @Serializable sealed interface UserQuery { @Serializable @SerialName("id") @JvmInline...

**What is your use-case and why do you need this feature?** This feature is needed to make migration easier. We are using Retrofit for now to make network calls and...

feature

**Describe the bug** The following code fails in runtime with: ``` Exception in thread "main" java.lang.IllegalArgumentException: Value for serializer ContextDescriptor(kClass: class java.lang.Object (Kotlin reflection is not available), original: kotlinx.serialization.Polymorphic(type: kotlin.String,...

(I did some research but not sure if I missed some documentation or discussions somewhere, sorry if it's a duplicate.) **What is your use-case and why do you need this...

feature

**Describe the bug** I have a Singleton object, for which I am trying to implement a `KSerializer`. Serializer works fine only if it is used outside of polymorphic context. When...

**Describe the bug** I have a multi-module Maven project, in which one of the shared modules is called `commons` and is used by other modules (let's called them `A` and...

bug
waiting for clarification

When using compose navigation type safe and switching to R8 tool version 8.5.xx (8.5.10/8.5.27/8.5.35) compilation fails Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin...

waiting for clarification