Hi I have solved this problem by explicitly adding quotes("\"") to the
return string.
Thanks,
Ming
On Thu, Sep 17, 2009 at 9:01 PM, Ming Kong <kongmingqq_at_gmail.com> wrote:
> 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
>
--
Sincerely,
Kong, Ming