I am writing something that will need to work with the JSON metadata for an object.
For example given the sample class below:
public class MyClassA
{
@JsonProperty("a")
private String a;
@JsonProperty("anothername")
private Integer b;
@JsonProperty("c")
private MyClassB c;
}
public class MyClassB
{
private Integer z = -1;
@JsonValue
public Integer toInteger()
{
return z;
}
}
I would like to know MyClassA maps to the following property names and JSON primitive types: (a - String, anothername - Number, c - Number) without doing the same introspection Jackson may be doing under the hood.
It's not immediately apparent what APIs under Jackson are available for doing that.