[Jersey] Customizing ObjectMapper

From: Gili <>
Date: Sat, 2 Apr 2011 19:34:12 -0700 (PDT)


I'd like to register a Jackson deserializer for a 3rd-party class I cannot
annotate. I believe the only way to do this is by customizing the
ObjectMapper that Jackson uses. I tried injecting my own ObjectMapper
instance using Guice but it looks like
com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy instantiates
ObjectMapper directly.

How am I supposed to register custom (de)serializers for 3rd-party classes?

Thank you,

View this message in context:
Sent from the Jersey mailing list archive at