I have following structure in json.
[
{
"Name": "FieldMapName1",
"Fields": [
{
"Name": "FieldName1",
"Values": [
{
"ID": 1,
"Value": "Value1"
},
// ...
]
},
// ...
]
},
// ...
]
Is there a way to convert it to:
Map<String, FieldMap> fieldMap;
Each field map object contains:
Map<String, Field> fields;
And each Field:
Map<Integer, String> values;
Should I write custom deserializer or there is some better approach?