kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
**What is your use-case and why do you need this feature?** I want to append additional data to the byte array generated by `encodeToByteArray` without having to copy all data...
**Describe the bug** Attempting to encode value classes with default generated serializers fails using Protocol Buffers. **To Reproduce** ```kotlin fun main(){ ProtoBuf {}.encodeToByteArray(Example(1)) } @Serializable @JvmInline value class Example(val raw...
**What is your use-case and why do you need this feature?** I would like to have my annotations inherited from the super-type, to avoid redondant code. Currently, it is not...
**What is your use-case and why do you need this feature?** I need to deserialize an object received from websockets as a byte array (the ktor client library stores received...
[RFC 8949 Concise Binary Object Representation (CBOR)](https://www.rfc-editor.org/rfc/rfc8949.html) defines three types of sequences: - a sequence of zero or more bytes ("byte string" / Major type 2) - a sequence of...
**Describe the bug** Since `kotlinx-serialization-json` `v1.9.0`, I get an R8 warning when building a release version of my Android app using Gradle. I get the following warning: `The type "$*"...
Based on the supported properties serializer, which writes to and from a map, I've created a library serializing to and deserializing from Java properties file. This PR intends to add...
**Describe the bug** I have an alternative serializer for Map (produces [{key, value}, ...]; simplified for this report). It is part of another Map with the usual serializer. We use...
- Uncomment test that was fixed by some other PR - Remove jvmOnly clause, because tests are working on other platforms too - Add test with useArrayPolymorphism=false
**What is your use-case and why do you need this feature?** I would like to use an ArrayDeque in a serializable class without extra configuration. Given that ArrayDeque is a...