Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Ktor HttpClient JsonFeature use kotlinx.serialization

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.

like image 783
Y2i Avatar asked Oct 22 '25 06:10

Y2i


1 Answers

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

like image 172
Leonid Avatar answered Oct 25 '25 06:10

Leonid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!