This actually works, it should be
>> -d '{"cmd":{"obj1": []}}'
Does not work well on the write side though, can't produce an absolutely
empty [], but will be possible in Jettison 1.3.5
Sergey
On 14/10/13 10:38, Sergey Beryozkin wrote:
Hi
On 11/10/13 20:52, David Hay wrote:
I'm trying to pass in an empty array as a JSON parameter, but it seems to
come through as null.
I'm trying:
-d '{"cmd":{"obj1": "[]"}}'
where cmd is an object Cmd which has Obj1[ ]
Is there a way to do this in CXF?
I'm not sure it is possible at the moment, I suspect Jettison would need
to be updated to issue startElement and endElement events for "obj1" for
JAXB to initialize a list/array. Try JacksonJsonProvider, may it can
handle it
Sergey
cheers,
David
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com