KotlinxSerializer

class KotlinxSerializer(json: Json = DefaultJson) : JsonSerializer

Deprecated (with error)

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

A JsonSerializer implemented for kotlinx Serializable classes.

Constructors

Link copied to clipboard
constructor(json: Json = DefaultJson)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun read(type: TypeInfo, body: Input): Any
Link copied to clipboard
open fun write(data: Any): OutgoingContent
open override fun write(data: Any, contentType: ContentType): OutgoingContent