Package io.ktor.client.features.json

Types

Link copied to clipboard
class JsonFeature

HttpClient feature that serializes/de-serializes as JSON custom objects to request and from response bodies using a serializer.

Link copied to clipboard
interface JsonSerializer

Client json serializer.

Functions

Link copied to clipboard
expect fun defaultSerializer(): JsonSerializer

Platform default serializer.

actual fun defaultSerializer(): JsonSerializer
actual fun defaultSerializer(): JsonSerializer

Platform default serializer.

Link copied to clipboard
fun HttpClientConfig<*>.Json(block: JsonFeature.Config.() -> Unit)

Install JsonFeature.

Properties

Link copied to clipboard
val serializers: MutableList<JsonSerializer>