Package io.ktor.client.plugins.json

Types

Link copied to clipboard
class JsonPlugin

HttpClient plugin 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

Platform default serializer.

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

Platform default serializer.

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

Install JsonPlugin.

Properties

Link copied to clipboard
val serializers: MutableList<JsonSerializer>
Link copied to clipboard
val serializersStore: MutableList<JsonSerializer>