title: Pattern matching field names with jq
body: <p>This is a very basic (probably silly) question but I can't get it to work...</p>
  
  <p>I have a JSON file with this structure:</p>
  
  <pre><code>{
      "data": {
          "what a burger": [1,2,3],
          "wap": [66],
          "the map": [11,20],
          "H. Incandenza": [1,1],
          "What a burger": [a,a,3]
      }
  }
  </code></pre>
  
  <p>I would like to extract the values of the fields within <em>data</em> whose "name" matches a certain pattern. For example, I would like to extract all the case-insensitive coincidences of "what a burger" to get</p>
  
  <pre><code>[1,2,3],[a,a,3]
  </code></pre>
  
  <p>My guess would be something like</p>
  
  <pre><code>jq '.data | match("what a burger";"i")'
  </code></pre>
  
  <p>but this results in</p>
  
  <pre><code>jq: error (at &lt;stdin&gt;:9): object ({"what a bu...) cannot be matched, as it is not a string
  </code></pre>
  
  <p>Cheers.</p>