title: POST request using play ws in Scala
body: <p>I am using play-ws standalone to consume REST service in scala.</p>
  
  <pre><code>val data = Json.obj("message" -&gt; "How are you?")
  wsClient.url("http://localhost:5000/token").post(data).map { response =&gt;
        val statusText: String = response.statusText
        println(response.body)
      }
  </code></pre>
  
  <p>When i run this, i get the following error,</p>
  
  <pre><code>Cannot find an instance of play.api.libs.json.JsObject to WSBody. Define a BodyWritable[play.api.libs.json.JsObject] or extend play.api.libs.ws.ahc.DefaultBodyWritables
      wsClient.url("http://localhost:5000/token").post(data).map { response =&gt;
  </code></pre>
  
  <p>It tells to define a bodywritable. I have read the documentation but cud't get the "BodyWritable". I am new to scala. Anybody help me please. Thanks in advance.</p>