On Sun, Sep 19, 2010 at 8:11 AM, Ricardo Borillo
<Ricardo.Borillo_at_si.uji.es> wrote:
> Hi Angel,
>
> Thanks for your response, but if it's possible i prefer not to user directly
> JSON classes and work with JAXB ...
As usual, many of problems can be solved by using direct Jackson
serialization, which does not add extra wrapper around root value.
Latest versions of Jersey allow this to be done by jersey JSON
configuration; and with earlier (1.2 and prior maybe?) you just
explicitly include JacksonJaxRsProvider (one-line in code, or couple
in servlet configuration).
This way no configuration is needed, not even @XmlRootElement, in
classes, nor use of any library-specific types. Just regular POJOs,
maps, lists or arrays.
-+ Tatu +-