Hello to all. There is a string
[{ "name":"TEXT", "author": { "name": "ololo" } }, { "name":"TEXT2", "author": { "name": "ololo" } }]
To retrieve the name
problem does not occur. I use the following code:
Gson gson = new Gson(); Parse[] parse = gson.fromJson(str, Parse[].class); for (int i = 0; i < parse.length; i++) { String name = parse[i].getName().toString(); }
But how do I get the name
from author
?