title: Not able to post request using ktor client in kotlin js
body: <p>Am trying to make an http post request but it is getting failed for reasons am not able to understand.</p>
  <pre><code>object KtorClient {
  val client = HttpClient() {
      install(JsonFeature) {
          serializer = KotlinxSerializer()
      }
   }
  }
  suspend fun createOwner(url : String = &quot;http://localhost:112/company/owner/register&quot;, ownerMapper: OwnerMapper) {
  println(ownerMapper)
  client.post&lt;Unit&gt;(url){
     body = ownerMapper
  }
  }
  </code></pre>
  <blockquote>
  <p>BlockquoteIllegalStateException {message_8yp7un$_0: &quot;Fail to send body. Content has type: class OwnerMapper, but OutgoingContent expected.&quot;, cause_th0jdv$_0: null, stack: &quot;captureStack↵Exception↵RuntimeException↵IllegalSta…↵↵↵↵↵↵↵↵↵↵↵↵↵↵↵↵↵promiseReactionJob@[native code]&quot;, name: &quot;IllegalStateException&quot;}</p>
  </blockquote>
  <p>After adding Serialization plugin, am getting this error:</p>
  <blockquote>
  <p>&quot;Can't locate argument-less serializer for class OwnerMapper. For generic classes, such as lists, please provide serializer explicitly.&quot;</p>
  </blockquote>
  <p>I have followed the official example but not able to make it run. Am using Kotlin/Js and above error is coming from browser.</p>