kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
**What is your use-case and why do you need this feature?** Generic Parsing of CBOR structures just like `decodeFromXXX(…)` is now becoming a must-have for CBOR, because the eIDAS2 regulation...
TL;DR: I want to build a library to deserialize JSON like this: ```json [ { "cmsType": "person", "firstName": "John", "lastName": "Doe" }, { "cmsType": "product", "name": "Some product", "price": 100...
Currently the `JsonElement` is very specific to `Json`, however the similar feature can be used in other formats like `Ctor`, `Yaml`, `MessagePack`, etc. **What is your use-case and why do...
**Describe the bug** `descriptor.serialName` as per the docs should return the overridden `@SerialName` for that field/type, but doesn't seem to respect that. >For generated and default serializers, the serial name...
#2227 added support for decoding numeric values containing an exponent, but it doesn't work for unsigned types: ```kotlin Json.decodeFromString("1E2") // 100 Json.decodeFromString("1E2") // JsonDecodingException ``` This is a request to...
Currently, numeric JSON values containing a decimal point cannot be decoded as integer types. An example of such values: `1.0`, `1.0E1`, `-1.5E3`, `0.5e2`. Decoding it as long fails with an...
`MissingFieldException` currently provides the names of the `missingFields`, but it *does not* provide the name of the class/type the fields were missing from, despite being a constructor parameter. Currently, the...
There is several use cases for recurrent name->value map. Specifically, map-like (let us call it `MapLike`) objects with `String` as a key and `Something` as a value, where value could...
**Describe the bug** I have enabled test fixures in my Android project, which is working. However, when I try to create a class annotated with `@Serializable` in the `testFixtures` source...
**What is your use-case and why do you need this feature?** I am looking for a way to deserialize a specific field in my json into a raw byte array...