users@jersey.java.net

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

From: nbaliga <nbaliga_at_cleartrial.com>
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: http://jersey.576304.n2.nabble.com/In-JSON-output-how-do-you-write-a-number-as-a-number-and-not-as-a-string-tp7292424p7295626.html
Sent from the Jersey mailing list archive at Nabble.com.