users@jersey.java.net

[Jersey] How to extract ObjectMapper from JAX-RS Client?

From: agks mehx <agksmehx_at_gmail.com>
Date: Sat, 4 May 2013 17:15:10 -1000

I am using Jersey JAX-RS client (version 2.0). I know it is using a Jackson
ObjectMapper to generate and parse JSON. I want to use that same object to
generate JSON for some java classes so that I can write them to a log.

I know I can create a new instance of ObjectMapper but I prefer to request
Jersey Client to give me a reference to the one it is using. How can I do
this? Jersey 2.0 is aware of Jackson because it includes a JacksonFeature
class that is used to configure the Jackson feature in the first place.

Thanks!