Hey all, I’m exploring Ktor and had a question abo...
# ktor
v
Hey all, I’m exploring Ktor and had a question about JSON conversion. Does Ktor support tokenized JSON conversion directly, or does it construct a string first and then convert that into JSON? I’m curious about the underlying process. Any insights or documentation pointers would be greatly appreciated!
a
It depends on the converter. For example,
KotlinxSerializationConverter
eagerly reads the body to a string or a byte array and then deserializes it.