Registry / http-client / ktor-client-json

ktor-client-json

JSON →
library3.4.2javamavenunverified

JSON serialization support for Ktor HTTP client, enabling easy parsing and generation of JSON data.

<dependency> <groupId>io.ktor</groupId> <artifactId>ktor-client-json</artifactId> <version>3.4.2</version> </dependency>
INSTALL
IMPORT
SIG · KTOR-CLIENT-JSON
K
ktor-client-json
http-clientjavav3.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ContentNegotiation
io.ktor.client.plugins.contentnegotiation.ContentNegotiation

Setting up Ktor client with JSON content negotiation.

import io.ktor.client.*; import io.ktor.client.plugins.contentnegotiation.*; import io.ktor.serialization.kotlinx.json.*; fun main() { val client = HttpClient { install(ContentNegotiation) { json() } } println("Ktor client with JSON support created") }
Debug
Known issues
breakingKtor 3.x requires Kotlin 2.0+ and may have breaking changes from 2.x.
fix
Ensure Kotlin version compatibility and review migration guide.
affects: >=3.0.0
Upgrade
Version history
3.4.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources
ktor-client-json — mvn dependency:get ktor-client-json · libregistry