With polymorphic serialization, I want to serialize classes A, B1, B2. I want to get the following line with class B2 I use hierarchy like and d ...
With polymorphic serialization, I want to serialize classes A, B1, B2. I want to get the following line with class B2 I use hierarchy like and d ...
With kotlinx.serialization polymorphism, I want to get but I get I use the following models I apply the following Json I use serializer T ...
I'm using external API in the app, while deserialisation is done with Kotlinx Serialization package, i'm facing issues when api result is Array of Int ...
I'm new on Kotlin and I'm trying parse a Json file to take your values. The first problem is that I don't know the keys and the second problem is that ...
How can I stringify a list of optional strings with kotlinx serialization? I would like to execute something similar to: However, this does not com ...
I have the following JSON array: I want to convert it to an object, but the problem is that I have nested arrays and the solution below doesn't wor ...
Description I'm using Kotlinx serialization library in a multiplatform library for iOS and Android to handle HTTP requests. But I have this message w ...
I am writing a Kotlin multiplatform project (JVM/JS) and I am trying to parse a HTTP Json array response into a Map using Kotlinx.serialization The J ...
I have existing Python programs which use import json and use method to read the json and present it in code in easy to use accessible dictionary. ...
I use kotlinx.serialization on Kotlin native project, I a defined Super class for my models and all of the models extends from it. I defined a functio ...
I'm creating a Kotlin Multiplatform library; actually I got 3 modules ( common, jvm and js ), In the classpath I got: classpath "org.jetbrains.kotlin ...
I am trying to deserialize a JSON into a kotlin class using kotlin.serialization. However when the code goes to deserialize the json it throws the err ...
I am getting a gradle build error for unresolved dependencies in a Kotlin/Native sample project. Failed to resolve: org.jetbrains.kotlinx:kotlinx- ...
I've already spent a lot of time trying to write custom serializer, to replace Int (TINYINT from mysql) to Boolean during serialization. Using Gson I ...
I am trying to get custom serializing to work with kotlinx.serialization like this reduced example: but I get: ...