Ktor's HttpClient allows installing a Json feature. Does anyone know if this feature can use kotlinx.serialization library or is it only limited to Gson? I'm interested in enabling the Json feature for MPP projects.
Yep. There is kotlinx.serialization support in JsonFeature
http://ktor.io/clients/http-client/features/json-feature.html#kotlinx-serialization
For the advance multiplatform example of the ktor client with kotlinx.serialization you could look into: https://github.com/JetBrains/kotlinconf-app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With