code: public JSONArray element( double value ) {
        Double d = new Double( value );
        JSONUtils.testValidity( d );
        return element( d );
     }
docs: Append a double value. This increases the array's length by one.
  
  @param value A double value.
  @throws JSONException if the value is not finite.
  @return this.