users@jersey.java.net

XmlAdapter to work with JSON natural notation?

From: Ming Kong <kongmingqq_at_gmail.com>
Date: Thu, 17 Sep 2009 21:01:32 -0400

Hi there!

I am currently using the natural notation to produce JSON data. The
natural notation by default doesn't convert numbers to strings. In
order to do the convert, I have tried writing some custom XmlAdapter
to marshal numbers as strings. But the adapters only work with XML,
not JSON with natural notation. The numbers are still treated as
non-strings.

Is there a way to solve this problem? I try to avoid using the Mapped notation.

Thanks,
Ming