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 need to use JSON to encode and decode 2d arrays of x/y coordinates ```kotlin @Serializable data class Coordinates(...
**What is your use-case and why do you need this feature?** When running a build with ProGuard 7.2.1, I get a lot of [notes in the output](https://www.guardsquare.com/manual/troubleshooting/troubleshooting#unresolvedprogramclassmember) similar to: >...
**What is your use-case and why do you need this feature?** If you have a data class with many "unsupported" types, but very common types in the JDK it is...
**Describe the bug** kotlinx.serialization.SerializationException: Serializer for class 'JsonObject' is not found. Mark the class @Serializable or provide the serializer explicitly. **To Reproduce** Issue occurs on following line: ``` val json...
**Describe the bug** Following code work on serialization pre-release artifact `org.jetbrains.kotlinx:kotlinx-serialization-runtime`. When using same code with `1.0.0-RC2` or later with artifact `org.jetbrains.kotlinx:kotlinx-serialization-json` I get runtime exception `SerializationException: Class 'ArrayList' is...
**Use case:** In my current use case, I am passing user-provided JSON input to the `Json.decodeFromString` function. In general, I expect this input to be erroneous. It could, for instance,...
The type parameter `T` of `DeserializationStrategy` only appears in an `out` position, namely as the return type of `deserialize()`. It can therefore be annotated with `out` to increase API flexibility...
**Describe the bug** When requiring type of Int in a serializable class, type coerce string to int without throwing an error. **To Reproduce** Attach a code snippet or test data...
I just landed a 35% performance improvement in my application by replacing this: ``` Json.decodeFromString(deserializer, string) ``` with this: ``` Json.decodeFromDynamic(deserializer, JSON.parse(string)) ``` Would you consider changing `decodeFromString()` to delegate...
**What is your use-case and why do you need this feature?** I would like to store the JsonConfiguration itself in a Json file and read them at startup. This allows...