diff --git a/pkg/json/json.go b/pkg/json/json.go index 738b102a..e483a811 100644 --- a/pkg/json/json.go +++ b/pkg/json/json.go @@ -157,6 +157,10 @@ func ReplaceJSONPlaceholders(source string, jsonData string) string { } func StringifyJSON(data interface{}) (string, error) { + _, ok := data.(string) + if ok { + return data.(string), nil + } if dataAsJSON, err := json.Marshal(data); err != nil { return "", err } else {