title: Groovy HTTPBuilder and Jackson
body: <p>Can I use Jackson instead of JSON-lib with Groovy's HTTPBuilder when setting the body on request?</p>
  
  <p>Example:</p>
  
  <pre><code>client.request(method){
        uri.path = path
        requestContentType = JSON
  
        body = customer
  
        response.success = { HttpResponseDecorator resp, JSONObject returnedUser -&gt;
  
          customer = getMapper().readValue(returnedUser.content[0].toString(), Customer.class)
          return customer
        }
  }
  </code></pre>
  
  <p>In this example, I'm using Jackson fine when handling the response, but I believe the request is using JSON-lib.</p>