jasoet
10/12/2018, 10:46 AMval client = HttpClient(Apache) {
install(JsonFeature) {
serializer = GsonSerializer {
// .GsonBuilder
serializeNulls()
disableHtmlEscaping()
}
}
}
And use following versions
kotlinVersion = "1.3.0-rc-146"
coroutineVersion = "0.30.2-eap13"
serializationVersion = "0.8.2-rc13"
arrowVersion = "0.7.3"
jUnitVersion = "5.3.1"
spekVersion = "2.0.0-rc.1"
ktorVersion = "0.9.5-rc13"
kluentVersion = "1.4"
logbackVersion = "1.2.3"
But somehow I cannot import JsonFeature
. I already add the deps
compile "io.ktor:ktor-client-json:$ktorVersion"
compile "io.ktor:ktor-client-apache:$ktorVersion"