For a single object I would do this:
//json input
{
"id" : "junk",
"stuff" : "bread"
}
//Java
MyClass instance = objectMapper.readValue(json, MyClass.class);
Now for an array I want to do this:
//json input
[{
"id" : "junk",
"stuff" : "bread"
},
{
"id" : "healthy",
"stuff" : "eggs"
}]
//Java
List<MyClass> entries = ?
Can anyone help me to find out the missing command?