On Wed, Apr 13, 2011 at 3:48 AM, <lists_at_zimmer428.net> wrote:
> Folks;
...
>
> (c) Give up on REST methods that return some part of object but return
> Response indeed and take care of generating the JSON output desired in
> this situation manually with other means. This would be my least
> favorable way, somehow.
>
> So, any thoughts on that? How would you eventually address such a use case?
For JSON, using Jackson-based POJO mapping Maps should come out
looking as Maps, which is what you want.
Challenge with other approaches that go via JAXB conversions is that
since XML does not have natural representation for Maps (compared to
JSON), additional levels are added to preserve ability to do
round-tripping to/from XML.
-+ Tatu +_