Package io.ktor.serialization

Types

SerializationConverter
Link copied to clipboard
class SerializationConverter : ContentConverter
ContentConverter with kotlinx.serialization.

Functions

json
Link copied to clipboard
fun ContentNegotiation.Configuration.json(json: Json = DefaultJson, contentType: ContentType = ContentType.Application.Json)
Register application/json (or another specified contentType) content type to ContentNegotiation feature using kotlinx.serialization.
fun ContentNegotiation.Configuration.json(json: Json = Json.Default, module: SerializersModule = EmptySerializersModule, contentType: ContentType = ContentType.Application.Json)
Register application/json (or another specified contentType) content type to ContentNegotiation feature using kotlinx.serialization.
serialization
Link copied to clipboard
fun ContentNegotiation.Configuration.serialization()
Register kotlinx.
fun ContentNegotiation.Configuration.serialization(contentType: ContentType)
Register kotlinx.
fun ContentNegotiation.Configuration.serialization(contentType: ContentType, format: BinaryFormat)
Register kotlinx.
fun ContentNegotiation.Configuration.serialization(contentType: ContentType, format: StringFormat)
Register kotlinx.
fun ContentNegotiation.Configuration.serialization(contentType: ContentType, json: Json)
Register kotlinx.
serialization0
Link copied to clipboard
@JvmName(name = serialization)
fun ContentNegotiation.Configuration.serialization0(contentType: ContentType = ContentType.Application.Json, json: Json = DefaultJson)
SerializationConverter
Link copied to clipboard
fun SerializationConverter(): SerializationConverter
This is no longer supported.

Properties

DefaultJson
Link copied to clipboard
val DefaultJson: Json
The default json configuration used in SerializationConverter.
DefaultJsonConfiguration
Link copied to clipboard
val DefaultJsonConfiguration: Json
The default json configuration used in SerializationConverter.