title: JQ filter by sub array - with hyphen in attribute name
body: <p>I have the following data file:</p>
  <pre class="lang-json prettyprint-override"><code>[
    {
      &quot;createTime&quot;: &quot;2021-12-15T09:39:59.812377Z&quot;,
      &quot;etag&quot;: &quot;\&quot;15d377a6a77bab\&quot;&quot;,
      &quot;labels&quot;: {
        &quot;is-secret&quot;: &quot;false&quot;
      },
      &quot;name&quot;: &quot;projects/xxx/secrets/xxx&quot;,
      &quot;replication&quot;: {
        &quot;automatic&quot;: {}
      }
    },
    {
      &quot;createTime&quot;: &quot;2021-12-19T03:47:53.594568Z&quot;,
      &quot;etag&quot;: &quot;\&quot;15d377a868c624\&quot;&quot;,
      &quot;labels&quot;: {
        &quot;is-secret&quot;: &quot;true&quot;
      },
      &quot;name&quot;: &quot;projects/xxx/secrets/xxx&quot;,
      &quot;replication&quot;: {
        &quot;automatic&quot;: {}
      }
    }
  ]
  </code></pre>
  <p>I am trying to select all elements that have a label of is-secret=true using the following query:</p>
  <pre><code>cat data.txt | jq '.[] | map(select( any(.labels[]; .is-secret == &quot;true&quot; )))'
  </code></pre>
  <p>Output needs to be an array.</p>
  <p>Yields: jq: 1 compile error</p>
  <p>Can anyone help?
  Cheers</p>