What I was aiming for was a wrapped response that also supported the
treatment of arrays in the fashion that Jackson POJO support does. So for
this trivial example:
public class Foo {
public List<Bar> barList = new ArrayList<Bar>();
public Foo() {}
}
it would marshall out to {"Foo":{ "barList":[]}}
-Noah
On Fri, Mar 18, 2011 at 7:01 AM, Jakub Podlesak
<jakub.podlesak_at_oracle.com>wrote:
> Hi Noah,
>
> It really depends on what you are trying to serialize out.
> i.e. for public class Wrapper{ List<String> fooList = new List<String>();},
> and that is IIUC what you have, Jackson should generate
> just what you want: { "fooList":[]}
>
> But maybe i get it wrong, could you please provide an example?
>
> ~Jakub
>
>
>