Thanks Tatu for the response. Is Jackson an additional library ? Can
you please provide any pointers in this regard
-----Original Message-----
From: Tatu Saloranta [mailto:tsaloranta_at_gmail.com]
Sent: Tuesday, March 15, 2011 10:31 AM
To: users_at_jersey.java.net
Subject: [Jersey] Re: returning basic data types
On Tue, Mar 15, 2011 at 12:24 AM, Markus Karg <karg_at_quipsy.de> wrote:
> There is no default mapping of basic data types to any particular body
> format, so you'll either can return a String instead, or you can
provide a
> custom MessageBodyWriter which tells JAX-RS how the body format shall
look
> like.
When using JSON POJO mapping with Jackson, it should be possible to
just return primitives or wrappers, I think.
Jackson itself can do it, the only possible limitation is whether
JAX-RS plug-in does it.
-+ Tatu +-