application/json (or another specified contentType) content type to the ContentNegotiation plugin using kotlinx.serialization.
The example below shows how to register the JSON serializer with customized serialization settings provided by JsonBuilder:
prettyPrint = true
isLenient = true
You can learn more from Content negotiation and serialization.
a format instance (optional)
to register with,
application/json by default