From 101cc84681b565bbc8ddf7b7b762e03dfc64b702 Mon Sep 17 00:00:00 2001 From: haihongren Date: Mon, 20 Feb 2023 11:09:59 +1100 Subject: [PATCH] fix: jq query string format issue - missing '|' when reformatting Signed-off-by: haihongren --- internal/processor/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/processor/data.go b/internal/processor/data.go index e16c838c..3dc30e19 100644 --- a/internal/processor/data.go +++ b/internal/processor/data.go @@ -78,7 +78,7 @@ func runJq(dataSets interface{}, api load.API) []interface{} { if api.Jq == "." { api.Jq = ".[0]" } else { - api.Jq = fmt.Sprintf(".[0]%v", api.Jq) + api.Jq = fmt.Sprintf(".[0]|%v", api.Jq) } }