[Solved] how to parse this nested json response?


You can read the documentation about the JSONObject class in Android.
In this documentation, you will find the method keys that will “Returns an iterator of the String names in this object.”

So you just have to call this method and use the iterator.

Iterator<String> keysIterator = jsonObject.keys();
String key;
while (keysIterator.hasNext()) {
     key = keysIterator.next();
     //use the key to retrieve the data form jsonObject
}

However, if you are the one generating this json, you may consider changing it a bit. The data in the listingsAvailable should probably be in an array.

solved how to parse this nested json response?