title: How to filter keys by name, then access nested object using jq
body: <p>Novice jq user here, struggling with the following:</p>
  
  <p>I have the following json and need to filter keys based on a keyword and print out the whole object (not just the key) or certain key/value pairs. Note the nested object structure of the JSON, which is intentional.</p>
  
  <pre><code>{
    "timers": {
      "timerWithAKeywordAPlusBlah": {
        "count": 1,
        "max": 0,
        "min": 0      
      },
      "timerWithAKeywordB": {
        "count": 2,
        "max": 0
      },
      "timerWithAKeywordAPlusBlahBlah": {
        "count": 2385,
        "max": 2,
        "min": 1         
      }
    }
  }
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre><code>"timerWithAKeywordAPlusBlah": {
    "count": 1,
    "max": 0,
    "min": 0
  },
  "timerWithAKeywordAPlusBlahBlah": {
    "count": 2385,
    "max": 2,
    "min": 1
  }
  </code></pre>
  
  <p><em>Things I tried:</em></p>
  
  <p>I can print out the key name, but can't figure out how to access the whole object.</p>
  
  <pre><code>cat timers.json| jq '.timers | keys[] | select(contains("KeywordA")) '
  </code></pre>