camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Moquin <>
Subject camel-jackson unmarshalling question
Date Sun, 26 Apr 2015 23:05:26 GMT
Hi, I had a question about unmarshalling a json object to a generic class
type, such as something like, MyClass<Person>.  Due to erasure, Jackson
provides a special way of unmarshalling this type object so that you don't
lose the generic type information, like this:

MyClass<Person> myClass = mapper.readValue(json, new
TypeReference<MyClass<Person>>() {});

Is there anyway to do this with the camel dataformat dsl?  Or does the
unmarshalling have to be done manually someway?

Thanks for help in advance!


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message