title: Extract element based on where clause in jq json
body: <p>My Json structure is like below.</p>
  
  <p>How can i extract id of project whose name is ansible using jq?</p>
  
  <p>The json file is very big</p>
  
  <p><a href="https://stedolan.github.io/jq/manual/" rel="nofollow">https://stedolan.github.io/jq/manual/</a></p>
  
  <pre><code>  {
      "id": 38,
      "name": "ansible",
      "path": "ansible",
      "description": "Ansible playbooks, roles, and supporting tools repos"
    },
    {
      "id": 18,
      "name": "Analytics",
      "path": "analytics",
      "description": "Big Data Analytics projects"
    }
  </code></pre>