I'm using retrofit to handle rest-api calls. I have a rest API that returns the following json
    "MyObject": {
      "43508": {
        "field1": 4339,
        "field2": "val",
        "field3": 15,
        "field4": 586.78
      },
      "1010030": {
        "field1": 1339,
        "field2": "val212",
        "field3": 1,
        "field4": 86.78
      },...
    }
Please notice that the object MyObject contains objects with a name that is actually an id.
For all the other rest APIs I'm using retrofit without problems.
In this case it seems not possible to use the standard approach: defining a class containing the fields expected in the response.
Is there a way to transform this json into a json containing an array of
{
    "field1": xxx,
    "field2": "yyy",
    "field3": www,
    "field4": zzz
}
Or is there a better way to deal with this problem without going back to "manually" parsing the json?