title: How to use jq wildcard
body: <p>I have the following json : </p>
  
  <pre><code>{  
     "details":{  
        "car": "bmw",
        "addresses":{  
           "ext-118-21-8-0-29":[  
              {  
                 "version":4,
                 "addr":"89 Psr"
              },
              {  
                 "version":6,
                 "addr":"56 apT"
              }
           ]
        }
     }
  }
  </code></pre>
  
  <p>The key <code>ext-118-21-8-0-29</code> is dynamic it will change the next time and I don't know the exact value, that's why I need to use wildcard. I need to get the value of the key <code>addr</code> where version is <code>4</code>.</p>
  
  <p>I'm expectig as output <code>89 Psr</code></p>
  
  <p>I tried the following using the function <code>startswith()</code>.</p>
  
  <pre><code>jq '.detail.addresses | select(startswith("ext"))'
  </code></pre>
  
  <p>But it end with an error.</p>
  
  <blockquote>
    <p>jq: error (at :0): startswith() requires string inputs</p>
  </blockquote>