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

formats/README.md listed some libraries from the community, and lots of them are no more actively maintained or not usable: - https://github.com/jershell/kbson - https://github.com/charleskorn/kaml - https://github.com/him188/yamlkt - https://github.com/L-Briand/obor - https://github.com/dimitark/kotlinx-serialization-ion -...

**What is your use-case and why do you need this feature?** Currently, kotlinx.serialization serializes all value classes as their property type. This works since only single-property value classes are supported....

feature

**Describe the bug** `serializer(KType)` and `serializerOrNull(KType)` find types annotated with `@Serializable` but not types annotated with `@Serializable(with = …)` **To Reproduce** Playground link: https://pl.kotl.in/GPVEn019Z **Expected behavior** The behavior of `serializer(KType)`...

Main branch for documentation rewrite efforts. Related ticket: [KT-66330](https://youtrack.jetbrains.com/issue/KT-66330)

This is the sixth part of the Kotlin Serialization rewrite task. This PR adds the JSON elements page to the restructured serialization documentation task.

**What is your use-case and why do you need this feature?** I would like to deserialize JSON where a collection field can be null, missing, or an empty array, and...

feature

**Describe the bug** When I try serializing a generic sealed class (e.g., `Sealed`) where the type argument is nullable (e.g., `Sealed`), kotlinx serialization incorrectly attempts to use the non-nullable serializer...

## What is your use-case and why do you need this feature? I'm trying to migrate my Python AI agent project into Kotlin. ### With Python When validating the json...

feature

**Describe the bug** If one loads the same serializable class in two different class-loaders, corresponding serial descriptors are equal (in sense `desctiptor1 == descritor2` returns true, while they are different....

**Describe the bug** In polymorphic deserialization, when the target subclass is using `JsonTransformingSerializer`, the deserialization will fail. It seems that it forgets it is deserializing an polymorphic object. ```log kotlinx.serialization.json.internal.JsonDecodingException:...

bug