What is the beast way to deal with the JSON object, that has the following structure:
{
"Parameters": {
"0": {
"some key 0": "some value 0"
},
"1": {
"some key 1": "some value 1"
},
"2": {
"some key 2": "some value 2"
},
....
"n": {
"some key n": "some value n"
}
}
It contains properties from 0 to n (e.g. 100), each property is an object with single key value. Looks like all keys are different.
Is it possible to transform it into a list of Parameter
, where each parameter has next structure:
public class Parameter {
String key;
String value;
}
What is the best way to handle this in jackson?