code: public JSONArray put(int index, int value) throws JSONException {
          put(index, Integer.valueOf(value));
          return this;
      }
docs: Put or replace an int value. If the index is greater than the length of
  the JSONArray, then null elements will be added as necessary to pad
  it out.
  
  @param index The subscript.
  @param value An int value.
  @return this
  @throws JSONException If the index is negative.