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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)