I have a JSON Object like this:
{"geonames":[
{"countryId":"2017370",
"adminCode1":"73"},
{"countryId":"2027370",
"adminCode1":"71"},
...]}
How can i deserialize this object DIRECTLY to List<GeoName>
, ignoring the first layer (geonames wrapper), instead of deserializing to a wrapper object containing List<GeoName>
as @JsonProperty("geonames")
?