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 got a `kotlinx.serialization/MissingFieldException` while building Kotlin-multi platform/iOS library with the library version `1.4.0`. It works perfectly with `1.3.3` Gradle command: `./gradlew assembleKmpSdkDebugXCFramework` Exception: ``` > Task...

native

I am interfacing an existing system that contains a map from numbers to byte strings (major type 2). My first attemt to handle this was to just decode to the...

feature
cbor

**Describe the bug** I have a Kotlin Multiplatform class as follows: **`Schema.kt`**: ``` @MetaSerializable annotation class Schema ``` **`Document.kt`**: ``` @Schema expect class Document { val id: String? val isCheckedOut:...

bug
can't reproduce

**Describe the bug** I'm using the kotlin serialization properties (not the json) and I'm getting `MissingFieldException` error when I try to decode a sealed class from a map **To Reproduce**...

bug
runtime

### Overview Hi there. I found `behaviour` and `behavior` are used in this repository. I think the spellings should be unified for consistency. šŸ¤” ### Search results - [behaviour](https://github.com/Kotlin/kotlinx.serialization/search?q=behaviour) :...

According to documentation, contextual are preferred over other serializers. However, this was not the case for interfaces. Polymorphic Serializer was always returned even if a contextual serializer was defined. This...

**Describe the bug** While trying out the new okio streams with kotlinx-serialization I noticed an issue with the result being different. I've attached a small project showing the serialization with...

bug

Kotlin serialization already has these APIs * `SerializersModule.getContextual(KClass, List)` * `SerializersModule.serializer(KType)` I’d like this API: * `SerializersModule.serializer(KClass, List)` In particular I have a root type (like `LinkedHashSet` or `Pair` or...

feature

**What is your use-case and why do you need this feature?** I have a base, non-sealed, interface, from which sealed classes extend. At runtime (this is a generic framework), I...

feature

### Data Objects ```kotlin @Serializable data class BasicApiResponse( val successful: Boolean, val message: String? = null, val data: T? = null ) ``` ```kotlin @Serializable data class CalculationsResponse( val valueA:...

ktor
waiting for clarification