<init>

SerializationConverter(
    json: Json = Json(DefaultJsonConfiguration))

Json ContentConverter with kotlinx.serialization.

Installation:

install(ContentNegotiation) {
   register(ContentType.Application.Json, SerializationConverter())
}

install(ContentNegotiation) {
    serialization(json = Json.nonstrict)
}