This is the JSON string I want to parse with Gson. I would like to quick and simple to parse it.
{
"values": [
[
1,
1,
0,
0,
0,
0,
11,
0.09090909090909091
],
[
[
0,
0,
0,
0,
0,
1,
0
],
[
0,
0,
0,
0,
0,
1,
0
],
[
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
0,
0,
11,
0
],
[
0,
0,
0,
0,
0,
0.09090909090909091,
0
]
]
]
}
but I don't know how to write the parsing code with Gson. Best result is if I can extract List from the parsed object.
Is any possible that i Write a class like that.
class Value
{
@SerializedName("0")
List<Float> value1;
@SerializedName("1")
List<Integer> value2;
...........
}
Thanks for everyone to help me.