code: func (value *Float64) MarshalJSON() ([]byte, error) {
  	val := float64(*value)
  	if math.IsNaN(val) {
  		return []byte(`"NaN"`), nil
  	} else if math.IsInf(val, 1) {
  		return []byte(`"Infinity"`), nil
  	} else if math.IsInf(val, -1) {
  		return []byte(`"-Infinity"`), nil
  	}
  	return json.Marshal(float64(*value))
  }
docs: // MarshalJSON implements the Marshaler interface for custom marshalling.