kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
**What is your use-case and why do you need this feature?** Using incompatible versions between the Kotlin compiler and kotlinx.serialization plugin can result in obscure errors. We recently encountered this...
If the inline class marked `@Serializable` is in **another** kotlin module and Proguard is **enabled**, a `java.lang.IllegalAccessError` occurs If Proguard is disabled, no exception occurs: also if the entity is...
**What is your use-case and why do you need this feature?** I am working on an API, using ktor - and I've noticed the `coerceInputValues` config option. On one hand,...
**Describe the bug** Types `repeated fixed32`, `repeated fixed64`, `repeated sfixed32` and `repeated sfixed64` that are packed/unpacked can't be serialized / deserialized. Types `repeated sint32` and `repeated sint64` is deserialized incorrectly....
**Describe the bug** Types `repeated uint32` and `repeated uint64` that are packed can't be serialized / deserialized. **To Reproduce** ```kotlin @ProtoNumber(77) @ProtoPacked val packedUint32: List = emptyList(), @ProtoNumber(78) @ProtoPacked val...
**Describe the bug** Protobuf maps with type `sint32`, `sint64`, `fixed32`, `fixed64`, `sfixed32`, and `sfixed64` can't be serialized & deserialized correctly. **To Reproduce** ```kotlin @ProtoNumber(62) val mapFixed32Fixed32: Map = emptyMap(), @ProtoNumber(63)...
**What is your use-case and why do you need this feature?** I have ported the Stream interface from google's [gson](https://github.com/google/gson) to kotlin-multiplatform using [okio](https://github.com/square/okio). Library: https://github.com/fab1an/kotlin-json-stream API-docs: https://fab1an.github.io/kotlin-json-stream/index.html The API-documentation...
**Describe the bug** When you have CBOR data that is tagged, deserialization fails with an exception. With tags I'm referring to section 3.4 of the RFC: https://datatracker.ietf.org/doc/html/rfc8949#section-3.4 In our case...
**What is your use-case and why do you need this feature?** I need to serialize using kotlinx.serialization a third party interface `IApiError` returned by a Spring controller advice : ```kotlin...
We have a steady stream of reports that all is about more permissive parsing: * Trailing commas (#1812) * Commas and comments * Multiline strings * Optional commas * Optional...