private Object decode(Object o) throws JSONException {
    if (o instanceof JSONArray) {
      List<Object> res = new ArrayList<Object>();
      JSONArray array = (JSONArray) o;
      for (int i = 0; i < array.length(); i++) {
        Object r = array.get(i);
        res.add(decode(r));
      }
      return res;
    } else {
      return o;
    }
  }
@param aut The application under test. Expected format is basePackage:version. E.g.:
       io.selendroid.testapp:0.4
@return Desired Capabilities of an device.
selendroid-common/src/main/java/io/selendroid/common/SelendroidCapabilities.java