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