I WANT TO SERIALIZE WITH CUSTOM NAME DONT CLASS NAME
I alreay know about this. Pls dont refer to this answer.
How to Serialize pojo class name with jackson. Example:
public class A{
private int a;
//getter seeter
}
when serialize A want to be like:
{"a": 1,"class":"ARequest"}
how to serialize Pojo with given className
. Is it possible without override toString()
method .I used this class in retrofit Post method body.
One point i dont serialize it under class name like:
{"ARequest":{"a":5}}