Basically I have a restful service (post) that consumes(application/json
) and produces (application/json
). The single param for this service is an
Raman is correct. Jettison is a valid option. You can also use Jackson. If you are using maven, it is as simple as including the following dependency in you pom:
org.jboss.resteasy
resteasy-jackson-provider
2.3.2.Final
At which point you should have no problem writing code such as:
SomeBean query = new SomeBean("args")
request.body("application/json", query);
ClientResponse response = request.post();