users@jersey.java.net

[Jersey] Re: how to rename XmlRootElement in JSON

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Fri, 27 May 2011 17:10:51 -0700

On Fri, May 27, 2011 at 2:38 PM, Maxrunner <joao.rossa_at_gmail.com> 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 +-