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

KamilH

08/25/2022, 6:17 AM
Is it possible to use new, okio based serialization API in conjunction with ktor?
a

Aleksei Tirman [JB]

08/25/2022, 12:16 PM
Could you please give an example usage of that API?
k

KamilH

08/25/2022, 12:20 PM
The only thing I know about it is this release note: https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.4.0-RC I haven’t tried it yet
And since Serialization is already stable in 1.4.0 version, I thought that it would be great to use it in ktor
a

Aleksei Tirman [JB]

08/25/2022, 1:09 PM
Probably it will require an integration of
Json.decodeFromBufferedSource
and
Json.encodeToBufferedSink
functions within Ktor.
55 Views