Using the Camel 2.19.3 Java DSL how do I go about unmarshalling a list of
pojos?

Currently I've tried:

.unmarshal().json(JsonLibrary.Gson, new ArrayList<MyPojo>().getClass())

but the generic gets erased so Gson has no idea what it's a list of, so
then I tried this for grins:

.unmarshal().json(JsonLibrary.Gson, MyPojo.class)

hoping the library would be pick up it was an array of this type, but it
doesn't.

Reply via email to