title: How to send request body in spring-boot web client?
body: <p>I'm facing some problem while sending request body in spring boot web client. Trying to send body like below:</p>
  
  <pre><code>val body = "{\n" +
              "\"email\":\"test@mail.com\",\n" +
              "\"id\":1\n" +
              "}"
  val response = webClient.post()
      .uri( "test_uri" )
      .accept(MediaType.APPLICATION_JSON)
      .body(BodyInserters.fromObject(body))
      .exchange()
      .block()
  </code></pre>
  
  <p>Its not working. <strong>Request body should be in JSON format.</strong>
  Please let me know where I'm doing wrong.</p>