Using Jackson as Jersey client serializer

OK, I found it out, it turns out to be quite simple after all:

ClientConfig cc = new DefaultClientConfig();
cc.getClasses().add(JacksonJsonProvider.class);
Client clientWithJacksonSerializer = Client.create(cc);

The JacksonJsonProvider comes from the jackson-jaxrs package.

Leave a Comment