kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
**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...
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...
**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:...
**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**...
### 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...
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...
**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...
### 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:...