code: func toJSONPretty(m map[string]interface{}) (string, error) {
  	result, err := json.MarshalIndent(m, "", "  ")
  	if err != nil {
  		return "", errors.Wrap(err, "toJSONPretty")
  	}
  	return string(bytes.TrimSpace(result)), err
  }
docs: // toJSONPretty converts the given structure into a deeply nested pretty JSON
  // string.