4

In GSON I can next:

Type envelopeType = TypeToken.getParameterized(RestResponse.class, type).getType();

In Moshi:

Type envelopeType = Types.newParameterizedType(RestResponse.class, type);

How can I do it with Jackson json?

ip696
  • 6,574
  • 12
  • 65
  • 128

1 Answers1

0

TypeFactory, which is part of jackson-databind, might provide the methods you are looking for.

Marcono1234
  • 5,856
  • 1
  • 25
  • 43