Could not read JSON: Can not deserialize instance of hello.Country[] out of START_OBJECT token

You need to do the following: public class CountryInfoResponse { @JsonProperty(“geonames”) private List<Country> countries; //getter – setter } RestTemplate restTemplate = new RestTemplate(); List<Country> countries = restTemplate.getForObject(“http://api.geonames.org/countryInfoJSON?username=volodiaL”,CountryInfoResponse.class).getCountries(); It would be great if you could use some kind of annotation to allow you to skip levels, but it’s not yet possible (see this and this)

Generate JSON schema from Java class

EDIT: as pointed out by commenters, module is being deprecated, not maintained. So, Caveat Emptor etc One such tool is Jackson JSON Schema module: https://github.com/FasterXML/jackson-module-jsonSchema which uses Jackson databind’s POJO introspection to traverse POJO properties, taking into account Jackson annotations, and produces a JSON Schema object, which may then be serialized as JSON or used … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)