I have the JSON object like this:
"stream_server":{
"value":"11",
"list":[
{
"id":"11",
"desc":"EU West"
},
{
"id":"4",
"desc":"EU Sud + GB"
},
{
"id":"9",
"desc":"DE 1"
},
{
"id":"12",
"desc":"DE 2"
}
]
}
I generated code for Jackson library where "list" is presented as ArrayList
of Objects.
public class StreamServer {
@JsonProperty("value")
private String value;
@JsonProperty("list")
private java.util.HashMap<String, String> serverList = new HashMap<>();
}
Can I deserialize it into Java Object like above?
I am looking for the sample code.