How can I set an instance of `kotlinx.serializatio...
# ktor
w
How can I set an instance of
kotlinx.serialization.json.JsonObject
as body on a ktor-client? The following calls fails with
kotlinx.serialization.SerializationException: Can't locate argument-less serializer for class kotlinx.serialization.json.JsonObject
Copy code
kotlin
  val client = HttpClient(OkHttp) {
      install(JsonFeature) {
          serializer = KotlinxSerializer(JSON.nonstrict)
      }
  }
  <http://client.post|client.post><Unit>(url) {
      body = json { "hello" to "world" }

  }
e
@sandwwraith
w
ah thanks, looking forward to the next release