Never mind. I found out that I had to add serializeAsArray = true in my
resources.xml:
<resources>
<Service id="jsonProvider"
class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider">
dropRootElement=true
supportUnwrapped = true
dropCollectionWrapperElement=true
serializeAsArray = true
</Service>
</resources>
Why does CXF have such insane defaults I will never know.
B.
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Serialize-ArrayList-as-JSON-array-tp4673944p4673945.html
Sent from the TomEE Users mailing list archive at Nabble.com.