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


Reply via email to