code: public JSONArray put(int index, long value) throws JSONException {
          put(index, Long.valueOf(value));
          return this;
      }
docs: Put or replace a long 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 A long value.
  @return this
  @throws JSONException If the index is negative.