jsonIo
@ExperimentalSerializationApi
Registers the application/json
(or another specified contentType) content type to the ContentNegotiation plugin using kotlinx.serialization.
This uses the experimental JSON support for kotlinx-io to stream content more efficiently.
Parameters
json
A JSON instance used for serialization and deserialization. Defaults to an instance of DefaultJson.
contentType
The content type to be associated with the JSON converter. Defaults to ContentType.Application.Json.