title: How can you filter on "Keys" using jq?
body: <p>I am looking to filter a JSON stream based on its keys. Here is the public JSON file:
  <a href="https://s3.amazonaws.com/okta-ip-ranges/ip_ranges.json" rel="nofollow noreferrer">https://s3.amazonaws.com/okta-ip-ranges/ip_ranges.json</a> that I am trying to wrangle. When I filter this for keys <code>jq 'keys'</code>, I get the following output</p>
  <pre><code>[
    &quot;apac_cell_1&quot;,
    &quot;emea_cell_1&quot;,
    &quot;emea_cell_2&quot;,
    &quot;preview_cell_1&quot;,
    &quot;preview_cell_2&quot;,
    &quot;preview_cell_3&quot;,
    &quot;us_cell_1&quot;,
    &quot;us_cell_10&quot;,
    &quot;us_cell_11&quot;,
    &quot;us_cell_12&quot;,
    &quot;us_cell_2&quot;,
    &quot;us_cell_3&quot;,
    &quot;us_cell_4&quot;,
    &quot;us_cell_5&quot;,
    &quot;us_cell_6&quot;,
    &quot;us_cell_7&quot;
  ]
  </code></pre>
  <p>I am trying to get all the <code>ip_ranges</code> associated with the keys starting with &quot;us_cell_*&quot; and I have not found a way to do it. Most of the filtering seems to be focused on the values and not the keys.</p>