Converting this JSON object as a class in java, how would the mapping be in your POJO Class?
{ \"ownerName\": \"Robert\", \"pets\": [ {
You can use the following classes:
public class MyObject { private String ownerName; private List pets; } public class Pet { private String name; }