code: public static JsonValue value(double value) {
      if (Double.isInfinite(value) || Double.isNaN(value)) {
        throw new IllegalArgumentException(INFINITE_AND_NAN);
      }
      return new JsonNumber(cutOffPointZero(Double.toString(value)));
    }
docs: Returns a JsonValue instance that represents the given <code>double</code> value.
  
  @param value
  the value to get a JSON representation for
  @return a JSON value that represents the given value