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

This PR obsoletes #2371 and #2359 as it contains the features of both PRs and many more. Specifically, this PR contains all feature required to serialize and parse COSE-compliant CBOR...

There are missed information on how Protobuf plugin implements serializing sub-classes into byte array in the user manual. You have described ProtoNumber annotation usage but omit description of type field...

feature
docs needed

**What is your use-case and why do you need this feature?** In some scenarios, I can only use ASCII characters to store or transmit data. Additional Base64 encoding will reduce...

feature

Is support planned for protobufs `oneOf`? https://developers.google.com/protocol-buffers/docs/proto#using-oneof

feature
protobuf

**Describe the bug** When i try to encode generic data to the JSON element using `ContextualSerializer`, the following crash occurs ``` Empty list doesn't contain element at index 0. java.lang.IndexOutOfBoundsException:...

bug
design
runtime

**Describe the bug** This is output in the following `"tags":["type":"kotlin.collections.ArrayList","2323"]` ``` {"body":{"foo1":{"number":1,"stringOrInt":5},"name":"2","tags":["type":"kotlin.collections.ArrayList","2323"],"foo2":{"number":1,"stringOrInt":5}}} ``` **Expected behavior** If I remove the `stringOrInt` property this is output: ``` {"body":{"foo1":{"number":1},"name":"2","tags":["2323"],"foo2":{"number":1}}} ``` It is not...

bug
json

**Describe the bug** When serializing a sealed value class, the serial name of the _inner_ class is embedded into the resulting JSON string. However, the produced string cannot be deserialized,...

bug

**Describe the bug** `"type":"kotlin.collections.LinkedHashMap"` is an incorrect discriminator and prevents data from de-serialization **To Reproduce** ``` @Serializable data class ValueHolder( val someField: Int, @Polymorphic val value: V, ) @Serializable data...

bug

**Describe the bug** When using `@Serializer`, the following exception is thrown when trying to get an element descriptor. ``` java.lang.IndexOutOfBoundsException: Example descriptor has only 1 elements, index: 0 ``` **To...

bug
compiler-plugin
Priority: 3
External generated serializer

**Describe the bug** Currently if we provide @Serializable(with = CustomSerializer) annotation then we no longer have access to original generated serializer. Which is fine in most cases, but it is...