code: func (j *JsonResult) Normalize() error {
  	if j == nil {
  		return nil
  	}
  	if j.Object == "" {
  		j.Size = 0
  		return nil
  	}
  	if len(j.Object) > jsonNonNormalizedSize {
  		return fmt.Errorf(
  			"JSONObject.Object length exceeds max non-normalized length: %d > %d (max)",
  			len(j.Object), jsonNonNormalizedSize)
  	}
  	normed, err := template.NormalizeJSON(j.Object, true)
  	if err != nil {
  		return err
  	}
  	if len(normed) > JSONObjectMaxLength {
  		return fmt.Errorf(
  			"JSONObject.Object length exceeds max: %d > %d (max)",
  			len(normed), JSONObjectMaxLength)
  	}
  	j.Object = normed
  	j.Size = uint32(len(j.Object))
  	return nil
  }
docs: // Normalize normalizes the JSONObject (ensures it's an object, removes
  // whitespace, sorts keys, normalizes Size value, etc.)