I need to parse a json with the structure as follows:
{
"names": {
"nameOne": {
"item": "my item"
},
"nameOther": {
"item": "my item 2"
},
... more elements with no prevously known attribute name
}
}
How could i retrieve it if i do not know how many nameOne, nameOther...nameX exist? My problem is to model that json, so i can not use a SerializedName. I think maybe exists something like a hashmap to store that objects.