Package io.ktor.serialization.gson

Types

Link copied to clipboard
class GsonConverter(gson: Gson) : ContentConverter

A GSON converter for the ContentNegotiation plugin.

Link copied to clipboard
class GsonWebsocketContentConverter(gson: Gson) : WebsocketContentConverter

GSON converter for the WebSockets plugin

Functions

Link copied to clipboard
fun Configuration.gson(contentType: ContentType = ContentType.Application.Json, block: GsonBuilder.() -> Unit = {})

Registers the application/json content type to the ContentNegotiation plugin using GSON.