Answer the question
In order to leave comments, you need to log in
How to parse non-trivial json (java)?
There is a large and complex JSON object.
Approximate view:
{
"some_field": 123,
"some_arr": [
{
"field 1": 123,
"field 2": "abc",
"field 3": {...},
"field 4": "def",
"tags": {
"some tag title 1": {...},
"some tag title 2": {...},
"some tag title 3": {...}
},
...
},
...
]
}
Answer the question
In order to leave comments, you need to log in
Everything was solved quite simply, I added a field to the gson object:
@SerializedName("tags")
public Map<String,gsonTag> tag;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question