code: public JsonWriter value(double value) throws IOException {
          if (!lenient && (Double.isNaN(value) || Double.isInfinite(value))) {
              throw new IllegalArgumentException("Numeric values must be finite, but was " + value);
          }
          beforeValue(false);
          out.append(Double.toString(value));
          return this;
      }
docs: Encodes {@code value}.
  
  @param value a finite value. May not be {@link Double#isNaN() NaNs} or
  {@link Double#isInfinite() infinities} unless this writer is lenient.
  @return this writer.