ktor-client-json / io.ktor.client.features.json / JsonSerializer

JsonSerializer

interface JsonSerializer

Client json serializer.

Functions

read

abstract fun read(type: TypeInfo, body: Input): Any

Read content from response using information specified in type.

write

abstract fun write(data: Any, contentType: ContentType): OutgoingContent
open fun write(data: Any): OutgoingContent

Convert data object to OutgoingContent.