How to get jsonarray from jsonarray?
code which i have tried.
for(loop)
List<String> stringList = new ArrayList<>();
try {
JSONArray responses = new JSONArray(response);
for (int i = 0; i < responses.length(); i++) {
stringList.add(responses.getString(i));
}
} catch (Exception e) {
e.printStackTrace();
}
i want to get this json:
[
"maj",
[
"maja salvador",
"maje",
"majboos",
"major lazer",
"majili",
"majid al futtaim",
"majorca",
"majestic",
"major",
"majnoon qahwa"
]
]
here is the link you can try. http://suggestqueries.google.com/complete/search?client=firefox&q=maj