I have the following JSON:
{
"Live": {
"Saerro (AU)": {
"status": "low",
"age": "00:01:17"
},
"Connery (US West)": {
"status": "medium",
"age": "00:02:26"
}
}
}
So the Map Live has Map<String,Map<String,String>>
as its values.
I need to deserialize Live into a list of objects,e.g.
public class Status implements Serializable {
@JsonProperty
public String name;
@JsonProperty
public String status;
@JsonProperty
public String age;
}
Is there an annotation or something I can use, so that the Map Key,and values get deserialized into one object?