I have the following JSON:
{
"name1" : "Jon Smith",
"age1" : 25,
"name2" : "Mary Carter",
"age2" : 31
}
I would like to deserialize it to the following Java structure:
public class PersonList {
private Person person1;
private Person person2;
}
public class Person {
private String name;
private int age;
}
Is it possible with Jackson?