JsonSerializer

interface JsonSerializer

Deprecated

Please use ContentNegotiation plugin and its converters: https://ktor.io/docs/migrating-2.html#serialization-client

Client json serializer.

Functions

Link copied to clipboard
abstract fun read(type: TypeInfo, body: Input): Any

Read content from response using information specified in type.

Link copied to clipboard
open fun write(data: Any): OutgoingContent
abstract fun write(data: Any, contentType: ContentType): OutgoingContent

Convert data object to OutgoingContent.