Hi

I'm not sure if it can help but the trunk now contains a support for JAX-RS ContextResolvers and default JAXB and JSON providers have been updated to check them.
See this blog for ex :
http://blogs.sun.com/japod/entry/better_json_available_in_jersey

Perhaps some customized JAXBContext can be provided to deal with this case, not 
sure though...

Cheers, Sergey

This might be related:

http://jira.codehaus.org/browse/JETTISON-22

-mike


On Tue, Jul 1, 2008 at 6:15 AM, Sergey Beryozkin <[EMAIL PROTECTED]>
wrote:

Hi


Hi Sergey,

I tried using jettison-1.0.1.jar but that does not seem to fix the issue.


Please open a JIRA againsr Jettison 1.0.1. You may want to try creating a
custom message body writer which will use
http://json-lib.sourceforge.net/

Cheers, Sergey



Thanks,
Sandhya


Sergey Beryozkin wrote:


Hi

This looks like a Jettison problem. Note that Jettison 1.0.1 has been
released (with a bunch of bugs fixed) and the parent pom will be updated
to pull this newer version in. You may want to try to this
version too in meantime and see if it fixes this problem...

Cheers, Sergey


Hi,

I have a problem. When I serialize collections containing more than one
object to JSON objects, the JSON object contains an array. However, when
the
collection contains only one object, then the resulting JSON object is
not
an array. How can this problem be overcome such that the resulting JSON
object is always an array regardless of the number of items in the
collection. Please let me know.

Thanks and Regards,
Sandhya
--
View this message in context:

http://www.nabble.com/Serializing-collections-containing-only-one-object-tp18210195p18210195.html
Sent from the cxf-user mailing list archive at Nabble.com.


----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to