Hi David,
On 31/10/13 23:30, KARR, DAVID wrote:
I'm working with some people who had some trouble configuring both xml and json
output in Jersey, and I wanted to see how their particular problem could be
resolved in CXF. I haven't had to deal with the particular problem they had,
and a quick search of the docs didn't give me an answer.
In short, they were hoping to get a json structure like the following:
{..., [{"prop1": prop1, "prop2": prop2},...], ...}
Where the objects in the array are "Foo" objects.
What they got was this:
{..., [{"foo": {"prop1": prop1, "prop2": prop2}},...], ...}
So instead of the "Foo" object, they got a wrapper object whose key is "foo", and the
value is the "Foo" object. Is it practical to configure Jettison in CXF to do this?
I need to see a sample JAXB bean and experiment with it, there are quite
a few ways to affect the Jettison output now, but I'd like to see how
the actual bean.
It is possible now to do only say
"[{"prop1": prop1, "prop2": prop2},...]"
but I'm not sure if having such an array alongside other sibling
properties is possible yet
Cheers, Sergey