kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
When a serializable data class inherits an interface or a sealed interface and we cast to the interface first then we get different results per platform. **To Reproduce** [Attach a...
Basically, we should teach our lexer to (https://github.com/Kotlin/kotlinx.serialization/blob/dev/formats/json/jvmMain/src/kotlinx/serialization/json/internal/JsonLexerJvm.kt#L179) to carefully look until the end of the current buffer in search for polymorphic key
Hello! I want to implement custom serializer for enums with fallback, because currently kotlinx fails to convert enum when backend sends new type, that is not supported yet. I wanted...
**What is your use-case?** In the last few weeks I migrated one of our services from spring to quarkus. In the process, I also had a look on alternatives to...
**Describe the bug** When using JsonContentPolymorphicSerializer to deserialize class which extends abstract class, properties from super class are missing. **To Reproduce** Lets say there is abstract class BaseClass ... ```...
In my app, i have many apis that require the transfer body in json format with only one element, like `{ "status": 0 }`, `{ "name": "Sam" }`, etc. so...
**What is your use-case and why do you need this feature?** Notice the lack of information about this library in Chinese. I want to translate English documents into Chinese. I...
[Here](https://github.com/Kotlin/kotlinx.serialization/tree/v1.3.2#android) are two different versions of proguard file with different rules and descriptions. Please make them similar, or better yet, keep only one version of proguard rules.
I've written a custom serializer which takes `Any` input and - basically by magic - finds an appropriate `KSerializer` to then delegate the actual serialization to. It seemed to me...
**Describe the bug** Having Json configured with `coerceInputValues = true` results in Enums not being deserialized if they have a custom serializer. If a value is predefined in the data...