Let's assume I have the following class:
public class Sample<T> {
private String smth;
}
I need to have the name of the "smth" property depends on the generic type. For example: Sample<String>
should be turned to {"string":value}
and Sample<Integer>
to {"int":value}
I tried to use Jackson MixIn but it can be applied only on the concrete class (not generic)
Can anyone propose somethig to sort it out?