Package io.ktor.serialization

Types

SerializationConverter

class SerializationConverter : ContentConverter

Json ContentConverter with kotlinx.serialization.

Properties

DefaultJsonConfiguration

val DefaultJsonConfiguration: JsonConfiguration

The default json configuration used in SerializationConverter. The settings are:

Functions

serialization

fun Configuration.serialization(
    contentType: ContentType = ContentType.Application.Json,
    json: Json = Json(DefaultJsonConfiguration)
): Unit

Register kotlinx.serialization converter into ContentNegotiation feature