ktor-client-gson / io.ktor.client.features.json / GsonSerializer

GsonSerializer

class GsonSerializer : JsonSerializer

JsonSerializer using Gson as backend.

Constructors

<init>

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

JsonSerializer using Gson as backend.

Functions

read

suspend fun read(type: TypeInfo, response: HttpResponse): Any

write

fun write(data: Any): OutgoingContent