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

**Describe the bug** For `mutableMapOf("key" to "")`, KotlinX Serialization ProtoBuf encodes both the key and value. Serialization and deserialization are fine. However, in `rs/prost`, because the `value` is equal to...

Currently, encodeDefaults = true writes all default values, while encodeDefaults = false omits all of them. There is no way to include only non-null defaults. ### Motivation In many API...

feature

**Describe the bug** Have certain data classes which need to be de/serialised and contain JS types (primarily BigInt). Added a custom serializer but serialisation always throws a ClassCastException. Happy to...

Currently, and independent of the `isLenient` option, the JSON decoders will coerce Strings to other primitiv types, allowing e.g. `"true"` to be decoded as `Boolean`. We are currently transitioning from...

It is absurd to me that people to this day do the exact same mistakes every serialization framework did for 20 years. We know at this point 2 biggest allocation...

feature

Hello, I was searching in stackoverflow and around but didn't find any answer to my problem. **What is your use-case and why do you need this feature?** Here is my...

feature

**Describe the bug** The `type` discriminator field vanishes when I wrap the generated serializer with `JsonTransformingSerializer`. I have a business description of operation that shall be performed. This operation is...

bug

**Describe the bug** Value classes that implemnet sealed interfaces marked as @Serializable cannot be decoded and will crash. This is because the type of the sealed interface cannot be set...

bug

**Describe the bug** When trying to serialize a value class If the ClassDiscriminatorMode is set to `ALL_JSON_OBJECTS` And the value class encapsulates a list Then it seems like the serializer...

bug

I have a library that exposes the interface `Destination` and an API accepting this `Destination` - I need the library to be able to process all destinations with KotlinX.Serialization. I...

feature