users@jersey.java.net

[Jersey] Re: Unmarshalling generic type using Jersey JSON

From: Grzegorz <gregory.d3_at_gmail.com>
Date: Thu, 11 Aug 2016 08:47:23 +0200

Hi Hannes,

Yes, it's possible, but it's not Jersey related, but it's JAXB
responsibility. You should look in the internet for something like
"*generic class jaxb
serialization".*

Ps. Proper answer for you probably is here:
http://stackoverflow.com/a/3441569/1037316.

Regards,
Greg


2016-08-10 15:01 GMT+02:00 Hannes Hofmann <hannes.hofmann92_at_gmail.com>:

> Hello together,
>
> I am currently using Jersey JSON to marshal and unmarshal objects and
> facing a problem when I want to unmarshall an object with a generic type.
> Detailed information can be found here: http://stackoverflow.com/
> questions/38752940/jersey-json-unmarshalling-generic-typed-class
>
> 1. Is it possible to unmarshal an object that contains a generic type?
> 2. If yes, how..?
>
>
> Thanks,
> Hannes
>