diff --git a/check/test.go b/check/test.go index e0fcd77..4f3cb79 100644 --- a/check/test.go +++ b/check/test.go @@ -239,7 +239,7 @@ func executeJSONPath(path string, jsonInterface interface{}) (string, error) { if err != nil { return "", err } - jsonpathResult := fmt.Sprintf("%s", buf) + jsonpathResult := buf.String() return jsonpathResult, nil }