Package io.ktor.serialization.gson
Types
Link copied to clipboard
A GSON converter for the ContentNegotiation plugin.
Link copied to clipboard
class GsonWebsocketContentConverter(gson: Gson) : WebsocketContentConverter
Content copied to clipboard
GSON converter for the WebSockets plugin
Functions
Link copied to clipboard
fun Configuration.gson(contentType: ContentType = ContentType.Application.Json, block: GsonBuilder.() -> Unit = {})
Content copied to clipboard
Registers the application/json
content type to the ContentNegotiation plugin using GSON.