I have a REST prototype using CXF that produces reasonable looking XML,
and almost reasonably looking JSON. The JSON it produces is "xml-ish".
For instance, the sample XML I get is the following:
<Item>
<description>def</description>
<features>
<feature>123</feature>
<feature>456</feature>
</features>
<id>1</id>
<title>abc</title>
</Item>
The JSON is this:
{"Item":{"description":"def","features":{"feature":[123,456]},"id":1,"ti
tle":"abc"}}
A nicer JSON result would have been this:
{"Item":{"description":"def","features":[123,456],"id":1,"title":"abc"}}
Is it possible to modify just the JSON results, but still have the "out
of the box" XML results?