I use retrofit and json. I need to parse a json like that:
{ "outer_array": [ "one" : [{}, {}], "two" : [{}], "three" : [{}], .... ] } Here is part of my code:
@SerializedName("outer_array") var data: List<List<Data>> But how can I parse each element of the "outer_array" array by key. Arrays inside "outer_array" can be from 0 to n. Maybe I should use a TypeAdapter. But I don't know how to apply it for this case, please help me
https://stackoverflow.com/questions/66737610/android-how-to-parse-jsonarrays-inside-jsonarray March 22, 2021 at 05:13AM
没有评论:
发表评论