I am having a class like,
public class Test {
@JsonProperty("values")
private List<String> valuesString = null;
@JsonProperty("values")
private List<Boolean> valuesBool = null;
}
if I give a list of string like below then it needs to be stored in valuesString, body,
{
"values" : ["Test1", "Test2"]
}
if list of boolean then valuesBool,
{
"values" : [false, true]
}
As of now it is giving me 400 response.