title: wiremock how to get post data
body: <p>i'm trying to get data from the post does any one try</p>
  
  <p>{
      "name":"sasha",
      "age":"15",
      "country":"italy"
  }</p>
  
  <p>I will like to get the value sash from the post, any ideas?</p>
  
  <hr>
  
  <p>only find to reply...</p>
  
  <p><a href="http://wiremock.org/docs/request-matching/" rel="nofollow noreferrer">http://wiremock.org/docs/request-matching/</a>
  buy I don't want to reply, I want the data.</p>
  
  <hr>
  
  <p>I would like something linke this:</p>
  
  <p>String name = wiremock.withRequestBody(name());
  print name -> sasha</p>
  
  <p>something like this:
  Body postBody = aResponse().withBody(matching("[?(@.name]"));</p>
  
  <hr>
  
  <p>I'm trying to get data from the POST like curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d "{'json':{'name':'sasha'}}" 127.0.0.1:8080/to/post I want to get sasha</p>