Using jq to extract values in JSON array with a particular key boolean == true?
<p>So I have a JSON blob as below:</p>

<pre><code>[
  {
    'id': 'something',
    'isSparse': true
  },
  ...
]
</code></pre>

<p>How do I write a <code>jq</code> command that'll filter out this JSON blob and <em>print me the IDs of all entries in the array that have isSparse == true?</em></p>

<p>I tried the following:</p>

<p><code>cat &lt;blob&gt; | jq -c '.[] | select(.operational | contains("true"))'</code></p>

<p>but get the following, because obviously <code>true</code> is a boolean and not a string:</p>

<p><code>jq: error: boolean and string cannot have their containment checked</code>.</p>