I have a pojo definition like following:
class Pojo<T>
{
private T entity;
//setters and getters;
}
I want to serialize this pojo into json using jackson and jaxb annotations. I want the property name in json to be the type of T not the name "entity". I tried few things with jaxb annotations but nothing worked as expected. Any help would be much appreciated.