code: public JSONObject getObject(int index) {
          Object tmp = mArray.get(index);
          return tmp == null ? null
                  : tmp instanceof JSONObject ? (JSONObject) tmp : null;
      }
docs: get JSONObject value.
  
  @param index index.
  @return value or default value.