camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoran Regvart <>
Subject Re: Gson Json unmarshal List
Date Fri, 03 Nov 2017 12:03:44 GMT
Hi Jerry,

yeah my mistake, typed from memory, that should have been
`TypeToken<List<MyPojo>>(){}.getType()`. And that won't work either we
expect java.lang.Class parameter there not `java.lang.reflect.Type`,
perhaps we should add support for that also. I created an issue to
bring support for that CAMEL-11990[1].



On Thu, Nov 2, 2017 at 4:14 PM, Jerry Smith <> wrote:
> Zoran, using the TypeToken I don't get any errors.  However, after the
> unmarshal call the body of my exchange is empty.  I checked the json going
> into the unmarshal call and there is data there.  Any idea what might be
> happening?

Zoran Regvart

View raw message