I'm trying to convert a JSONArray which looks like this :
{"output":["name":"Name3","URI":"Value3"},{"name":"Name5","URI":"Value5"},{"name":"Name4","URI":"Value4"}]}
Into an arrayList so for example the output of Arr[0][0] will be Name3
I have tried this solution:
if (outputs!= null) {
int len = outputs.length();
for (int j=0;j<len;j++){
list.add(outputs.get(j).toString());
}
}
for (String str : list) {
System.out.println("Item is: " + str);
}
But I get the full row : {"name":"Name3","URI":"Value3"}
How can I get each object of my JSONArray?