code: func (results Results) MarshalJSON() ([]byte, error) {
  	for _, result := range results {
  		if result.ResultID() == "" {
  			result.SetResultID(fmt.Sprintf("%d", &result))
  		}
  
  		if err := inferIQR(result); err != nil {
  			return nil, err
  		}
  	}
  
  	return json.Marshal([]Result(results))
  }
docs: // MarshalJSON makes sure IQRs have proper IDs and Type variables set.