[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 14:08:37 -0800 (PST)

User error on my part.

I had an XmlJavaTypeAdapter to convert from String -> Double and vice versa.
This was for some JSR303 validation bug I was trying to fix.

When I removed this adapter from my Double attribute, its JSON
representation showed up without quotes just fine.

Thanks all for your input.

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