kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
Now, we look up serializers for non-sealed interfaces in SerializersModule first, and only then unconditionally return PolymorphicSerializer. This is done because with old behavior, it was impossible to override interface...
**Describe the bug** When using a custom serializer that is polymorphic on the type argument of a list, the serializer produces an array instead of the expected object **To Reproduce**...
**What is your use-case and why do you need this feature?** [This section](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md#delegating-serializers) of the Kotlin Serialization Guide recommends that delegating serializers should not reuse the descriptor of the serializer...
**Describe the bug** An external serializer's descriptor seems to lack element descriptors despite having elements. This leads to unexpected errors and currently prevents me from implementing some complex custom serializers,...
I [commented](https://github.com/Kotlin/kotlinx.serialization/issues/67#issuecomment-1869614294) in the issue #67 but I think it is necessary to open a new issue for further discussion. --- I am writing a code-gen plugin to build kotlin...
**What is your use-case and why do you need this feature?** In gradle.properties, we can have the following properties: ```properties org.gradle.unsafe.configuration-cache=true org.gradle.unsafe.configuration-cache.max-problems=0 ``` This creates a conflict. Because we can't...
**What is your use-case and why do you need this feature?** Just a regular case of parsing JSON responses in JS. I would like to have such feature to avoid...
**Describe the bug** In accordance with the [JSON specification](https://datatracker.ietf.org/doc/html/rfc8259#section-7), it is required that any string value be enclosed in quotes. However, when I attempt to parse inputs containing unquoted string...
Kotlinx serialization ignores unknown enums, val services: kotlin.collections.List? ``` Failure(io.ktor.serialization.JsonConvertException: .ServiceGeneratedDto does not contain element with name 'Cars' at path $[1].services[0]) ```