String response = "{\"mon\" : [[16,20]],\"sun\":[[10,20]]}";
Basically, how do I get one object of 2 items where in each item is an int array of 2 elements. Sample code please.
JSONArray jsonArray = jsonObject.getJSONArray("mon");
JSONArray weekdayArray = jsonArray.getJSONArray(0);
int size = weekdayArray.length();
String weekday[] = new String[size];
int[] wday = new int[size];
for(int i=0; i < size ; i++) {
weekday[i] = weekdayArray.getString(i);
wday[i] = Integer.parseInt(weekday[i]);
}