Converting this JSON object as a class in java, how would the mapping be in your POJO Class?
{ \"ownerName\": \"Robert\", \"pets\": [ {
In the above json you have ownerName as property, pets as List of objects
ownerName
pets
public class Response { private String ownerName; private List pets; // getters and setters }
Pet POJO
public class Pet { private String name; //getters and setters }