I solved the problem by adding Vehicles
class:
@JsonIgnoreProperties(ignoreUnknown = true)
public class Vehicles extends ArrayList<Vehicle> {
public Vehicles() {
}
}
and changing loadDataFromNetwork()
method like that:
public Vehicles loadDataFromNetwork() throws Exception {
return getRestTemplate().getForObject(
FULL_URL,
Vehicles.class);
}