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