[Jersey] Re: In JSON output how do you write a number as a number and not as a string?

From: nbaliga <>
Date: Fri, 17 Feb 2012 05:12:34 -0800 (PST)

After I upgraded to Jackson 1.9, I started seeing the quotes on numbers
despite having explicitly set the WRITE_NUMBERS_AS_STRINGS to false (the
default is also false).

Previously, when I was on Jackson 0.9, the numbers appeared without the

In both cases, the Jersey version is 1.5.

With Jackson 0.9, I was supplying a JaxbContextResolver via
public class JAXBContextResolver
      implements ContextResolver<JAXBContext>


With Jackson 1.9, I am supplying Jackson ObjectMapper via
public class JacksonObjectMapperProvider
      implements ContextResolver<ObjectMapper>

But like I mentioned Jackson 1.9 on it's own doesn't quote numbers.

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