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** I'm not sure if this is actually a bug or I'm misunderstanding the behavior somehow. The details are [here](https://kotlinlang.slack.com/archives/C7A1U5PTM/p1755979388508409). **To Reproduce** I have a class like this:...

docs needed

They're present on generated KDoc site (which no one looks into) and are not present in the `docs/json.md` (where everyone goes): - Integration with Java streams: `encodeToStream`, `decodeFromStream`, sequence -...

docs needed

Currently they have different formats: ```kotlin interface X @Serializable sealed interface Y @Test fun names() { println(serializer().descriptor.serialName) // kotlinx.serialization.Polymorphic println(serializer().descriptor.serialName) // kotlinx.serialization.features.DefaultPolymorphicSerializerTest.Y } ``` Moreover, X's name is not affected...

**What is your use-case and why do you need this feature?** There were several requests for `kotlinx-datetime` that `kotlinx.datetime.Instant` allows (de)serialization into Unix seconds or milliseconds. For example, so that...

feature

## Why? The external serializers feature is incomplete and has a lot of bugs. The leading causes for this are the fundamental technical limitations of the Kotlin compiler and overall...

External generated serializer

### Current Situation: The BinaryFormat interface, implemented by formats like ProtoBuf and Cbor, only provides: ``` kotlin fun encodeToByteArray(serializer: SerializationStrategy, value: T): ByteArray fun decodeFromByteArray(deserializer: DeserializationStrategy, bytes: ByteArray): T ```...

feature

I am always reading and writing to bytes in my library and I don't want to pipe two codepaths throughout the whole thing. A quick way to convert a `StringFormat`...

~~This is more a question than a feature request...~~ I'm working in an environment where JSON messages are being published from an Android App, written in Kotlin, via MQTT, to...

feature
cbor

**Describe the bug** When trying to serialize map with values set to different it throws an error: kotlinx.serialization.SerializationException: Serializer for class 'Any' is not found. **To Reproduce** Attach a code...

cbor
docs needed