@Override
  public JsonWriter value(float value) throws IOException {
    if (!isLenient() && (Float.isNaN(value) || Float.isInfinite(value))) {
      throw new IllegalArgumentException("Numeric values must be finite, but was " + value);
    }
    generator.writeNumber(value);
    return this;
  }
{@link JsonWriter} implementation backed by Jackson's {@link JsonGenerator}.
Provides measurable JSON writing improvements over Gson's native implementation.
Error reporting is might differ, however.
gson/src/org/immutables/gson/stream/JsonGeneratorWriter.java