GsonSerializer

class GsonSerializer(block: GsonBuilder.() -> Unit = {}) : JsonSerializer

Deprecated (with error)

Please use ContentNegotiation plugin and its converters: https://ktor.io/docs/migrating-2.html#serialization-client

JsonSerializer using Gson as backend.

Constructors

Link copied to clipboard
constructor(block: GsonBuilder.() -> Unit = {})

Functions

Link copied to clipboard
open override fun read(type: TypeInfo, body: Input): Any
Link copied to clipboard
open override fun write(data: Any, contentType: ContentType): OutgoingContent
open fun write(data: Any): OutgoingContent