Package io.ktor.serialization.kotlinx.json

Functions

Link copied to clipboard
fun Configuration.json(json: Json = DefaultJson, contentType: ContentType = ContentType.Application.Json)

Register application/json (or another specified contentType) content type to ContentNegotiation plugin using kotlinx.serialization.

Properties

Link copied to clipboard
val DefaultJson: Json

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