I have following JSON response coming from a Rest call:
{
"config" : {
"hour" : 1
"minute" : 60
"pw" : "password"
},
"id" : 12345,
"enabled" : true,
"name" : "my-name"
}
I am using Spring RestTemplate to make the rest call and I would like to map the response to a Java Object as below:
public Class MyResponse {
private Map<String, String> config;
private Map<String, String> allTheRestProps;
}
Is it possible to do this with Jackson annotations without using String as a response and map it manually?
allTheRestProps?