4
I got the following JSON:
String json = "{\n" +
"\n" +
" \"Pessoas\":[\n" +
" {\n" +
" \"NomeHomem\":{\n" +
" \"Idade\":1\n" +
" }\n" +
" },\n" +
" {\n" +
" \"NomeMulher\":{\n" +
" \"Idade\":true\n" +
" }\n" +
" },\n" +
" {\n" +
" \"NomeCrianca\":{\n" +
" \"Idade\":\"string\"\n" +
" }\n" +
" }\n" +
" ]\n" +
"\n" +
"}";
When there is no array like this I use one getString("Pessoas");
and it works. But in this case, how to do?
Thanks, but is there any way to get the string "people"? I needed to use it too.
– daniel12345smith
@daniel12345smith updated the answer, see if this is what you need. If not, update your question with the expected result.
– Bruno César
Valew Bruno, with this I can already manage here.
– daniel12345smith