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
Aleksei Tirman [JB]
02/29/2024, 10:56 AM
It depends on the converter. For example,
KotlinxSerializationConverter
eagerly reads the body to a string or a byte array and then deserializes it.