When
I wrote RESTful client in Java with JAX-RS 2.0 Client API, I thought that JSON
serialization/deserialization was not working with Jersey 2.0-m3.
But, in fact, it works as designed and Martin Matula gives us the solution in his second comment and in JIRA).
But, in fact, it works as designed and Martin Matula gives us the solution in his second comment and in JIRA).
To
use the JSON serialization/deserialization (with Jersey 2.0m3), you have to:
- enable the JsonFeature on the client with the line:
client.configuration().enable(new JsonFeature()); - and add the jars:
jersey-media-json-2.0, jackson-jaxrs, jackson-core-asl, jackson-mapper-asl and jackson-xc