From 6decd2a39f3e799d46cea37fd39e68493379c7ab Mon Sep 17 00:00:00 2001 From: Geoffrey Martin-Noble Date: Thu, 17 Apr 2025 10:24:53 -0700 Subject: [PATCH] Add missing parens to jq inside call This example was helpful, but it's missing the parentheses. Also jq's error messages are really not great: `jq: error: inside/0 is not defined at , line 1` --- jq/filter-out-results-based-on-list-of-values.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jq/filter-out-results-based-on-list-of-values.md b/jq/filter-out-results-based-on-list-of-values.md index 95d34218..6fc77b81 100644 --- a/jq/filter-out-results-based-on-list-of-values.md +++ b/jq/filter-out-results-based-on-list-of-values.md @@ -23,7 +23,7 @@ can filter the array down to those objects whose IDs are exclude. ``` -jq '.[] | select([.id] | inside["456", "963"] | not)' data.json +jq '.[] | select([.id] | inside(["456", "963"]) | not)' data.json ``` Inside that `select`, we grab the `id` as a single value array, check if that