code: public JSONArray getJSONArray(int index) throws JSONException {
  		Object object = get(index);
  		if (object instanceof JSONArray) {
  			return (JSONArray) object;
  		}
  		else {
  			throw JSON.typeMismatch(index, object, "JSONArray");
  		}
  	}
docs: Returns the value at {@code index} if it exists and is a {@code
  JSONArray}.
  @param index the index to get the value from
  @return the array at {@code index}
  @throws JSONException if the value doesn't exist or is not a {@code
  JSONArray}.