I have a class like this
public class Person()
{
@SerializedName("c")
public String name;
@SerializedName("i")
public int id;
}
Can i serialize it in manner of retain the field name, not the serialize name without removing the annotation?
I can't change class declaration cause these annotation are used for serializing to database, and i want to make a readable string of these objects for debugging.
eg: {"name":"Mark","id":0} instead of {"c":"Mark","i":0}