If I have any class, for example:
import com.fasterxml.jackson.annotation.JsonProperty;
class Person {
@JsonProperty("alternativeName")
private String name;
}
I have a instance of A with name = "test"
I would like to have in log:
Object Person(alternativeName=test, ... [other JsonProperty..])
How to get that object with the JsonProperty instead the attributes? Is there any way to get it?