CXF JSON Generation remove @ prefix

Working with CXF-RS if you want to generate the json response along with xml than it becomes pain in cases where your xml is a mixture of attributes and elements. Problem comes because of default jettison json provider which is configured in cxf-rs. The jettison appends the '@' prefix  with the attributes. However, I needed json free from any prefixes. To achieve this i had configure jackson as json provider like this:


            <ref bean="jaxbProvider" />
            <ref class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/>

That's it and you should be free from prefixes.


Popular posts from this blog Connection reset

Hide empty last column from Table/Tree Viewer

Spring: implements interface not working in @Controller