title: Python find obj value based on condition within dictionary
body: <p>I get below json data from a python request: </p>
  
  <pre><code>{
      "results": [
          {
              "name": "virtual-machine-1",
              "guest": "Microsoft Windows Server 2016 (64-bit)",
              "status": "green",
              "id": "567890-004",
          },
          {
              "name": "virtual-machine-2",
              "guest": "CoreOS Linux (64-bit)",
              "status": "green",
              "id": "567890-005",
          }
      ]
  }
  </code></pre>
  
  <p>How can I get "id" values of all dictionaries based on the "name" values. </p>
  
  <p>I have seen solutions for finding values based on keys but not on a conditional basis within same dictionary and iterating it for multiple dictionaries. Appreciate your help.</p>