users@jersey.java.net

[Jersey] Re: how to rename XmlRootElement in JSON

From: Maxrunner <joao.rossa_at_gmail.com>
Date: Mon, 30 May 2011 08:07:46 -0700 (PDT)

Because its unecessary information, a list of organicas should be designed
as:

{
  Organicas: [{...},{...}]
}

right?And that's exactly how jaxb designs it, if i return a list of
organicas it still used the xmlrootelement name of the object type, not the
List type....the result using the either the list wrapper or the map one is
the same:

{
  "ListWrapperWithMap" : {
    "Organicas" : [ {...},{...}]
    }
}

--
View this message in context: http://jersey.576304.n2.nabble.com/how-to-rename-XmlRootElement-in-JSON-tp6173292p6419486.html
Sent from the Jersey mailing list archive at Nabble.com.