I've a pojo as below:
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = @class)
public class Shape {
public final String abc;
public final String xyz;
}
Rest api accepts object of Shape as a parameter, wherein I've to pass object like this:
{ @class = com.test.Shape, abc = "test1", xyz = "test2"}
.
I want json to be passed like
{ abc = "test1", xyz = "test2"}
Basically, I want to deserialise pojo without passing @class key.