https://kotlinlang.org logo
#ktor
Title
# ktor
b

Bradford Canonigo

07/23/2021, 10:51 PM
Hi all, what are the difference between these 2 dependencies?
Copy code
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion"
implementation "io.ktor:ktor-client-serialization:$ktorVersion"
I believe both are serialization dependencies for kotlin, or both are kotlinx serializers.
r

Robert Jaros

07/23/2021, 11:10 PM
First is
kotlinx.serialization
library (https://github.com/Kotlin/kotlinx.serialization). The second is optional Ktor client's support for this library.
🙌 1
3 Views