On 03/05/2015 05:27 PM, bibhas wrote:
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.
Did you put this into war resource file?
