https://kotlinlang.org logo
#serialization
Title
# serialization
l

Lukasz Ciastko

10/02/2023, 4:06 PM
Hi. I migrated to Ktor Client 2 and am having issues getting JsonElement from a response:
Copy code
No transformation found: class io.ktor.utils.io.ByteBufferChannel (Kotlin reflection is not available) -> class kotlinx.serialization.json.JsonElement (Kotlin reflection is not available)
I am trying to do:
result.body<JsonElement>()
but this doesn’t work. It used to work in version 1.x.x. Any idea how to solve it?