I have a unique situation where I have to get certain times from a json\'s deeply nested object. It\'s a little complex, I couldn\'t find a solution so looking for ideas and way
You will have to do something like this :
JSONArray array = new JSONArray(result);
for (int i = 0; i < array.length(); ++i) {
JSONObject jObj = array.getJSONObject(i);
String busyAt = jObj.getString("busyAt");
// convert it to json array
JSONArray busyAtArray = new JSONArray(busyAt)
String endedAt = busyAtArray.getJSONObject(0).getString("ended_at")
// convert the string and get the time from it
}
I hope you got the general idea from this. This snippet can certainly be written in a better way.