How can I retrieve "B2" from the following? JSONArray?
JSONArray o = new JSONArray();
for(int i = 0; i < 3; i++) {
List<Object> list = new ArrayList<Object>();
list.add("B" + i);
list.add(100+i);
o.put(list);
}
I'm thinking it's something like the following, although this isn't at all correct.
o.get(2)[0]
o.getInt(2). See json.org/javadoc/org/json/JSONArray.html#getInt%28int%29o.getJSONArray(2).getString(0)