code: public JsonArray set(int index, org.jmxtrans.agent.util.json.JsonValue value) {
      if (value == null) {
        throw new NullPointerException("value is null");
      }
      values.set(index, value);
      return this;
    }
docs: Replaces the element at the specified position in this array with the specified JSON value.
  
  @param index
  the index of the array element to replace
  @param value
  the value to be stored at the specified array position, must not be <code>null</code>
  @return the array itself, to enable method chaining
  @throws IndexOutOfBoundsException
  if the index is out of range, i.e. <code>index &lt; 0</code> or
  <code>index &gt;= size</code>