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

Rafal

12/04/2020, 9:00 AM
Hi folks. I wanted to use
kotlinx.serialization
in
ContentNegotiation
and I can’t find the artifact containing that
serialization()
method as stated in the ktor docs
Copy code
install(ContentNegotiation) {
    serialization()
}
Do you know which artifact I need to include in the gradle file?
j

Javier

12/04/2020, 9:09 AM
I had the same problem, the artifacts guide is, IMO, confusing, hope they just show the fully artifact instead of cutting them.
In a few minutes I will share the artifact I used
d

Dieter Konrad

12/04/2020, 9:11 AM
same
j

Javier

12/04/2020, 9:12 AM
Copy code
implementation("io.ktor:ktor-serialization:$ktor_version")
🙇‍♂️ 1
r

Rafal

12/04/2020, 9:15 AM
that one worked, and also I see now that it is changed to
json()
instead of
serialization()
thanks a lot! 🙇