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

It would be really useful if we could specify serializers for non-serializable properties at runtime, similarly to how we specify serializers for generic properties. An imaginatory API could look like...

feature

**Describe the bug** When attempting to compile a `@Serializable` sealed class with ~2,000 subclasses compilation fails with a `MethodTooLargeException`. This appears to be related to the way the default `SealedClassSerializer`...

Recently, in Adyen we ran into [this issue](https://github.com/Kotlin/kotlinx.serialization/issues/632) of having too many arguments in method signature when constructing a serializable data class. And we were considering implementing and upstreaming the...

docs needed

Traced to this line: https://github.com/Kotlin/kotlinx.serialization/blob/d4d066d72a9f92f06c640be5a36a22f75d0d7659/formats/cbor/commonMain/src/kotlinx/serialization/cbor/internal/Encoder.kt#L106 I consider this a bug. Null objects should be encoded as the simple type `null`, no matter whether they are class types or other types....

cbor

**Describe the bug** In json, if we get: ``` { "someKey": "some long text \nAnotherline" } ``` Everything works as intended but if that '\n' was '\\n' it just outputs...

Current implementation doesn't give users any chance to control the property name in Hocon representation when they use the `useConfigNamingConvention`.

**What is your use-case and why do you need this feature?** I have a web application and I would like to reject strings that contain control characters (`\u0000` to `\u001F`...

question

Let's take the following annotated Kotlin class: ```kt @JsExport @Serializable public class ZCSet( public val desc: String?, public val isSel: Boolean?, public val subset: Int?, ) ``` On Kotlin/JS, when...

feature

I have an API that I'm dealing with that will return nulls encoded as a string "null", for example: data model: ```kotlin @Serializable data class NullableString(val value: String? = null)...

feature

**Describe the bug** We have parallel heirarchies of polymorphic classes. We were seeing fields in one heirarchy appearing in the serialized output of the other; only when `namingStrategy` is set....

docs needed