I have used the OpenSearch API as suggested here.
The result I get, as shown in a solution in that page, is of this form:
[
"Malleshwaram",
["Malleshwaram"],
[""],
["https:\/\/en.wikipedia.org\/wiki\/Malleshwaram"]
]
Now I have collected this in a JSONArray object (org.json). But I am unable to parse it since there is no key in these key value pairs. How do I get the elements by their indices?
I just wanted to separate these elements and store them in different string arrays.