I am trying to covert the following JSON which contains an object of json objects into a Java object on Android using gson.fromJson(json, packageClass), however, I am having trouble figuring out what the structure of my java package class should be.
{
"package": {
"version": "1.0.0",
"description": "my test description",
"contents": {
"product1": {
"description": "my product 1"
},
"product 2": {
"description": "my product 2"
},
"product 3": {
"description": "my product 3"
}
}
}
}