code: public int getInt(int index) throws JSONException {
  		Object object = get(index);
  		Integer result = JSON.toInteger(object);
  		if (result == null) {
  			throw JSON.typeMismatch(index, object, "int");
  		}
  		return result;
  	}
docs: Returns the value at {@code index} if it exists and is an int or can be coerced to
  an int.
  @param index the index to get the value from
  @return the {@code value}
  @throws JSONException if the value at {@code index} doesn't exist or cannot be
  coerced to an int.