code: void writeFloat(float value) throws IOException {
          if (Float.isNaN(value) || Float.isInfinite(value)) {
              output.append('"').append(Float.toString(value)).append('"');
          } else {
              output.append(Float.toString(value));
          }
      }
docs: Writes a JSON float.
  <p>
  This outputs the values of NaN, and Infinity as strings.
  
  @param value  the value
  @throws IOException if an error occurs