On 23/07/13 15:34, Francesco Chicchiriccò wrote:
On 23/07/2013 15:52, Sergey Beryozkin wrote:
Hence now I have to understand why the server does not put "@class" on
JSON array elements.
That is something to do with Jackson itself I believe
Definitely: I have prepared a simple project showing off this
misbehavior and sent a comment to Jackson's attention:
https://github.com/FasterXML/jackson-databind/issues/23#issuecomment-21417625
Thanks for doing that. As I just commented it looks like CXF JAX-RS can
be to blame in that it does not offer a ParameterizedType on the server
side, it unwraps it. That said - if Jackson could support plain Types
for collections then it would be good I guess
Thanks, Sergey
Regards.