Yes you can
https://rmannibucau.wordpress.com/2014/12/02/apache-johnzon-more-configuration-and-tomee-integration/
 Le 18 mai 2015 18:23, "Kirys" <[email protected]> a écrit :

> Sorry again
> I've found how to set it into openejb-jar
> But it still collapse array of one element into json.
> Is there a correct set of parameters or should I use another provider
> (Jackson?)?
> Thank you
> K
>  On 18 May 2015 17:06, "kirys.it" <[email protected]> wrote:
>
> > 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?
> >
>

Reply via email to