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

**What is your use-case and why do you need this feature?** I want to serialize a class as a JSON array. The elements can have different types. For that, I...

feature

When dealing with serialization to `Properties` format, there is a high chance that we're using both Java's `Properties` type and Kotlin's `Properties` object. This is quite annoying import-wise. Renaming to...

feature

Fixes #2287 and #2520, makes sure that comma between key-value pairs is required in `Json.decodeFromString`

**What is your use-case and why do you need this feature?** Protobuf naturally does not support passing `null` value. As a workaround, kotlinx serialization uses the approach when a nullable...

feature

**Describe the bug** When writing a custom serializer in a project targeting Kotlin/JS or Kotlin/Native, the compiler plugin won't find the serializer if the entity that implements `KSerializer` is a...

bug
compiler-plugin

**What is your use-case and why do you need this feature?** I want to use polymorphic deserialization with an interface as the root class, using a different class discriminator from...

bug

In maven projects, published "umbrella" artifacts (like "kotlinx-serialization-json") works as a gateway to corresponding `-jvm` artifacts. The former do not have a JPMS module bundled inside, so the module name...

bug
build

## 0\. Setup We created the following class hierarchy for testing serialization library: ```kotlin Value (org.plan.research) ArrayValue (org.plan.research) BooleanArrayValue (org.plan.research) BooleanValue (org.plan.research) ByteArrayValue (org.plan.research) ByteValue (org.plan.research) CharArrayValue (org.plan.research) CharValue (org.plan.research)...

found-by-fuzzing

Hi, I'm building a library where I do some validation of raw JSON literal strings, and return a `JsonElement` if the validation succeeds. I would like to use `JsonUnquotedLiteral` if...

feature
QoL

I have to work with an API that responds with JSON: - on Success `{ "Data":T }` - on Error `{ "error":{ "msg":String, "id":Int } }` so i have built...