I am using a public API that gives me a list of Objects but they not in a ArrayList as below:
FYI this is just a portion of the JSON Response.
FYI 2: This is already being parsed using Gson from Retrofit
"dataCenters": {
"Peru": {
"capacity": "full",
"load": "idle"
},
"EU West": {
"capacity": "full",
"load": "low"
}
}
As you can see the dataCenters object is not a list. How would I be able to add this list of objects to an arraylist?
I have made all the dataCenters the same type of object called DataCentersStatus so that i dont have a long list of different models that all are basically the same just have different names.
Thank you