users@jersey.java.net

[Jersey] Re: how to rename XmlRootElement in JSON

From: Maxrunner <joao.rossa_at_gmail.com>
Date: Sat, 28 May 2011 02:33:03 -0700 (PDT)

That's what i get unless im doing something wrong...ill try to post the full
code when im back at work. Or ill try to get a run environment here.

regards,

On Sat, May 28, 2011 at 1:11 AM, Cowtowncoder [via Jersey] <
ml-node+6412986-1744541374-73314_at_n2.nabble.com> wrote:

> On Fri, May 27, 2011 at 2:38 PM, Maxrunner <[hidden email]<http://user/SendEmail.jtp?type=node&node=6412986&i=0>>
> wrote:
>
> >
> > Another possiblity is just a very simple wrapper bean. Something like:
> >
> > public class ListWrapper<T> {
> > public List<T> rootNameIWant;
> > }
> >
> > and return that instead of List. Or, if you want fully dynamic name
> > Yes, but then you end up with two names, the listwrapper name and the
> type
> > of objects in the list:
>
> No, how would list elements get any wrapping?
>
> -+ Tatu +-
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://jersey.576304.n2.nabble.com/how-to-rename-XmlRootElement-in-JSON-tp6173292p6412986.html
> To unsubscribe from how to rename XmlRootElement in JSON, click here<http://jersey.576304.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6173292&code=am9hby5yb3NzYUBnbWFpbC5jb218NjE3MzI5MnwyMDYzODA1MDkw>.
>
>


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