GsonSerializer

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

Deprecated (with error)

Please use ContentNegotiation plugin and its converters: https://ktor.io/docs/migration-to-20x.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