Ok then it's fine you have the configuration setup. By default CXF uses Jettison which is some kind of JAXB adapter to translate from XML to JSON. And obviously as the model are very different, it does not work very well.
So basically, no one uses it AFAIK. Most people just use Jackson provider which is the most used and the most well known. We have also Apache Johnzon lighter (a lot) and works fine. JLouis -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Tue, Mar 24, 2015 at 2:11 PM, bibhas <bibh...@gmail.com> wrote: > Jean-Louis MONTEIRO wrote > > I guess you use this definition as a reference in this openejb-jar.xml ? > > Hi jean, I am not sure I understand your question. I am using > openejb-jar.xml and resource.xml already to fix many other strange > behaviors > of JSONProvider. Now I am trying to fix this particular problem where a > single element array is not serialized as array. > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/JSONProvider-single-length-array-tp4674152p4674159.html > Sent from the TomEE Users mailing list archive at Nabble.com. >