Ok thanks - will investigate this too. Rob ________________________________ From: Sergey Beryozkin [via CXF] <[email protected]> To: rpd <[email protected]> Sent: Tuesday, 14 January 2014, 12:25 Subject: Re: NON-SPRING JSON array serialization workaround please??
I was wrong, in fact it is already being tested, you need to do something like: <init-param> <param-name>jaxrs.providers</param-name> <param-value> org.apache.cxf.jaxrs.provider.json.JSONProvider( dropRootElement=false attributesToElements=true arrayKeys=a arrayKeys=b ), org.apache.cxf.jaxrs.provider.JAXBElementProvider </param-value> </init-param> But going the Application way will offer a more flexible approach (in case you need to setup some Map properties, etc) Cheers, Sergey On 14/01/14 12:11, Sergey Beryozkin wrote: ________________________________ -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com/ ________________________________ If you reply to this email, your message will be added to the discussion below: http://cxf.547215.n5.nabble.com/NON-SPRING-JSON-array-serialization-workaround-please-tp5738442p5738536.html To unsubscribe from NON-SPRING JSON array serialization workaround please??, click here. NAML -- View this message in context: http://cxf.547215.n5.nabble.com/NON-SPRING-JSON-array-serialization-workaround-please-tp5738442p5738546.html Sent from the cxf-user mailing list archive at Nabble.com.
