code: func resultErrorFormatJSONNumber(n json.Number) string {
  
  	if int64Value, err := n.Int64(); err == nil {
  		return fmt.Sprintf("%d", int64Value)
  	}
  
  	float64Value, _ := n.Float64()
  
  	return fmt.Sprintf("%g", float64Value)
  }
docs: // formats a number so that it is displayed as the smallest string possible