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

A data class with computed property: ``` data class Bean(val name: String) { val computed: String get() = "--$name" } ``` Use `kotlinx-serialization-runtime-0.20.0': ``` val result = Json(Stable).stringify(Bean.serializer(), Bean(name =...

feature
design

**What is your use-case and why do you need this feature?** Based on [this comment](https://github.com/Kotlin/kotlinx.serialization/issues/1253#issuecomment-760252355), a custom `JsonTransformingSerializer` doesn't support nullable types. There is currently no straightforward way (except cumbersome...

feature

Hi, I'm dealing with an annoying `JSON` service which is **out of my control**. If a value is unavailable it is expressed as an empty array `[]` instead of a...

feature
design

We don't have any serialInfo-related information in our guide, and KDoc for it is rather scarce. Such nuance causes confusions like this: https://github.com/Kotlin/kotlinx.serialization/issues/1923

docs needed

**Describe the bug** When attempting to deserialise some JSON to objects, a segmentation fault occurs when running on iOS (via the `iosX64Test` target) **To Reproduce** See https://github.com/kierans/mpp-serialisation for a sample...

bug

**What is your use-case and why do you need this feature?** There has been several use cases mentioned in different issues that require to add the discriminator in more places,...

feature

**What is your use-case and why do you need this feature?** I found its very complex when I try to parse the json string when the type is unknown, for...

feature
design

Currently, for the serializable class with polymorphic property, e.g. ``` @Serializable data class PolymorphicWrapper(val i: @Polymorphic Poly) ``` nested `write$self` contains the following snippet: ``` output.encodeSerializableElement(serialDesc, 0, new PolymorphicSerializer(Reflection.getOrCreateKotlinClass(PurePolymorphismOverheadBenchmark.Poly.class)), self.i);...

compiler-plugin

**Describe the bug** The following code crashes at runtime with the error: ``` Exception in thread "main" java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Ljava.lang.String; ([Ljava.lang.Object; and [Ljava.lang.String; are...

bug

**What is your use-case and why do you need this feature?** I'm using Realm for storing data locally (on android) and JSON to transfer data over the wire. My data...

question