dev@jersey.java.net

Issue with json support in 0.6 release

From: Peter Liu <Peter.Liu_at_Sun.COM>
Date: Thu, 06 Mar 2008 16:02:48 -0800

I am trying out the 0.6 release and I am getting the following exception
when returning a jaxb object
with the mime type set to application/json:

java.lang.UnsupportedOperationException: Not supported yet.
        at
com.sun.ws.rest.impl.json.writer.JsonXmlStreamWriter.writeAttribute(JsonXmlStreamWriter.java:288)
        at
com.sun.xml.bind.v2.runtime.output.XMLStreamWriterOutput.attribute(XMLStreamWriterOutput.java:131)
        at
com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl.attribute(XmlOutputAbstractImpl.java:106)
        at
com.sun.xml.bind.v2.runtime.XMLSerializer.attribute(XMLSerializer.java:442)
        at
com.sun.xml.bind.v2.runtime.property.AttributeProperty.serializeAttributes(AttributeProperty.java:99)
        at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeAttributes(ClassBeanInfoImpl.java:331)
        at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:587)
        at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:312)


The was working in 0.5 release.

Thanks.

Peter