kotlinx.serialization icon indicating copy to clipboard operation
kotlinx.serialization copied to clipboard

Kotlin multiplatform / multi-format serialization

Results 407 kotlinx.serialization issues
Sort by recently updated
recently updated
newest added

We want to customize the header and the footer in coroutines API reference on kotlinlang.org to provide a better user experience and consistency between all parts of kotlinlang.org. Starting from...

With this many formats it is easier for me to find what I need in a table. I had to merge GitHub repo and Artifact Id columns to make the...

**Describe the bug** I'm using custom annotation `@YamlComment` annotated with `@SerialInfo`. If `@YamlComment` annotation contains default parameters compiler will throw an [error](https://gist.github.com/slava110/5fbd17b290e390815ef496571d2c2ddc) **To Reproduce** ```kotlin @Target(AnnotationTarget.PROPERTY) @SerialInfo public annotation class...

bug
compiler-plugin

**Describe the bug** Trying to serialize an object inside another object raises a NullPointerException: ``` Exception in thread "main" java.lang.NullPointerException at kotlinx.serialization.encoding.Encoder$DefaultImpls.encodeNullableSerializableValue(Encoding.kt:268) at kotlinx.serialization.json.JsonEncoder$DefaultImpls.encodeNullableSerializableValue(JsonEncoder.kt) at kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeNullableSerializableValue(StreamingJsonEncoder.kt:15) at kotlinx.serialization.encoding.AbstractEncoder.encodeNullableSerializableElement(AbstractEncoder.kt:81) at com.mayak.discord.rest.settings.MessageCreateSettings.write$Self(Settings.kt:13)...

**What is your use-case and why do you need this feature?** Support for kotlinx serialization for persistence state components in the IntelliJ IDEA platform. One of the concerns of using...

**Describe the bug** Trying to use new Okio streams, introduced recently and encountering `JsonDecodingException `when trying to decode big JSON via `decodeFromBufferedSource()`. ` decodeFromString()` works fine. **To Reproduce** ``` @Serializable...

A `KSerializer` should serve the same purposes that `Nothing` in type system: indicate that a particular item should never be serialized. There are several use-cases for it, mainly connected with...

feature
compiler-plugin
Priority: 2

**Describe the bug** ``` > Task :visionforge-solid:compileKotlinJs FAILED e: java.lang.NullPointerException at org.jetbrains.kotlinx.serialization.compiler.backend.ir.IrBuilderExtension$DefaultImpls.serializeAllProperties(GeneratorHelpers.kt:1286) at org.jetbrains.kotlinx.serialization.compiler.backend.ir.SerializerIrGenerator.serializeAllProperties(SerializerIrGenerator.kt:47) at org.jetbrains.kotlinx.serialization.compiler.backend.ir.SerializerIrGenerator$generateSave$1.invoke(SerializerIrGenerator.kt:267) at org.jetbrains.kotlinx.serialization.compiler.backend.ir.SerializerIrGenerator$generateSave$1.invoke(SerializerIrGenerator.kt:222) at org.jetbrains.kotlinx.serialization.compiler.backend.ir.IrBuilderExtension$DefaultImpls.contributeFunction(GeneratorHelpers.kt:69) at org.jetbrains.kotlinx.serialization.compiler.backend.ir.SerializerIrGenerator.contributeFunction(SerializerIrGenerator.kt:47) at org.jetbrains.kotlinx.serialization.compiler.backend.ir.IrBuilderExtension$DefaultImpls.contributeFunction$default(GeneratorHelpers.kt:63) at org.jetbrains.kotlinx.serialization.compiler.backend.ir.SerializerIrGenerator.generateSave(SerializerIrGenerator.kt:222) at org.jetbrains.kotlinx.serialization.compiler.backend.common.SerializerCodegen.generateSaveIfNeeded(SerializerCodegen.kt:109) at org.jetbrains.kotlinx.serialization.compiler.backend.common.SerializerCodegen.generate(SerializerCodegen.kt:37)...

bug