I need to process responses from an external SAP service which returns data as an array of arrays like this:
{
"INFO":"",
"SERVICE_NAME":[["PARAM1","PARAM2","PARAM3","PARAM4"]],
"RESULTS":[
["object1fieldValue1","object1fieldValue2"],
["object2fieldValue1","object2fieldValue2"]
]
}
I would like to process the RESULTS further as a list of DTOs like this:
public class ResultItemDto {
private String field1;
private String field2;
}
instead of working with every object as a list of Strings and possibly mapping it manually to DTOs.
What would be the right, concise "Jackson way" of mapping such JSON directly to POJOs?