← Back to Kairo Docs|API Reference (Dokka)

KairoConverter

class KairoConverter(json: KairoJson) : ContentConverter

Ktor ContentConverter adapted from JacksonConverter that preserves full generic type information. Unlike Ktor's built-in converter, this uses KairoType to avoid JVM type erasure during serialization and deserialization.

Constructors

Link copied to clipboard
constructor(json: KairoJson)

Functions

Link copied to clipboard
open suspend override fun deserialize(charset: Charset, typeInfo: TypeInfo, content: ByteReadChannel): Any?
Link copied to clipboard
open suspend override fun serialize(contentType: ContentType, charset: Charset, typeInfo: TypeInfo, value: Any?): OutgoingContent