fun Configuration.gson(contentType: ContentType = ContentType.Application.Json, block: GsonBuilder.() -> Unit = {})(source) Registers the application/json content type to the ContentNegotiation plugin using GSON.
You can learn more from the corresponding client and server documentation.
Report a problem