I'm currently getting back json from a third party API that looks like this
{
success: true,
data: {
acdc-key1: [{
id: acdc-key1,
othervar: stuff,
foo: bar
}],
r2d2-key2: [{
id: r2d2-key2,
othervar: thing,
foo: mu
}]
}
}
etc..
Basically it's an object which has an object, which has keys, and those keys have arrays of objects.
I'm using mapper to convert the response from the API into JAva objects, but I'm not sure how to construct my class so that it can be mapped properly.
The main problem is the long array of keys that will always change and aren't set fields.