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