title: How to pass the json response in ResponseBody of WireMock
body: <p>I am trying to validate the json response. Have gone through the documentation in wiremock and also tried github example as below syntax. </p>
  
  <p><a href="https://github.com/tomakehurst/wiremock/blob/master/src/test/java/ignored/Examples.java#374" rel="nofollow noreferrer">https://github.com/tomakehurst/wiremock/blob/master/src/test/java/ignored/Examples.java#374</a></p>
  
  <pre><code>@Test
  public void toDoListScenario() {
  stubFor(get(urlEqualTo("/todo/items")).inScenario("To do list")
              .whenScenarioStateIs(STARTED)
              .willReturn(aResponse()
                      .withBody("&lt;items&gt;" +
                              "   &lt;item&gt;Buy milk&lt;/item&gt;" +
                              "&lt;/items&gt;"))); }
  </code></pre>
  
  <p>How to enter the json response in Body Section.</p>
  
  <pre><code> {
   employeeDetails : [
     employeeName : ABCDE,
     employeeID : 12345 ]
   }
  </code></pre>
  
  <p>Is the below representation is correct. Please help me on this.</p>
  
  <pre><code>.withBody("employeeDetails:" +
            "employeeID" : "12345" +
            "employeeName" : "Preethi" + )
  </code></pre>