I have rest url that gives me all countries - http://api.geonames.org/countryInfoJSON?username=volodiaL.
I use RestTemplate from spring 3 to parse returned json into
Another solution:
public class CountryInfoResponse { private List geonames; }
Usage of a generic Object-List solved my problem, as there were other Datatypes like Boolean too.