title: How to filter an array of json with jq in linux?
body: <p>I have the following JSON input:</p>
  <pre><code>{
    &quot;paging&quot;: {
      &quot;count&quot;: 0,
      &quot;total&quot;: 0,
      &quot;offset&quot;: 0,
      &quot;max&quot;: 0
    },
    &quot;executions&quot;: [
      {
        &quot;id&quot;: 5,
        &quot;href&quot;: &quot;https://localhost.com.br&quot;,
        &quot;permalink&quot;: &quot;https://localhost.com.br&quot;,
        &quot;status&quot;: &quot;succeeded&quot;,
        &quot;project&quot;: &quot;PROJETO&quot;,
        &quot;executionType&quot;: &quot;scheduled&quot;,
        &quot;date-started&quot;: {
          &quot;unixtime&quot;: 1660793400012,
          &quot;date&quot;: &quot;2022-08-18T03:30:00Z&quot;
        },
        &quot;date-ended&quot;: {
          &quot;unixtime&quot;: 1660793409694,
          &quot;date&quot;: &quot;2022-08-18T03:30:09Z&quot;
        },
        &quot;job&quot;: {
          &quot;id&quot;: &quot;cdkwednweoi-8745bjdf-kcjkjr8745&quot;,
          &quot;averageDuration&quot;: 0,
          &quot;name&quot;: &quot;routine&quot;,
          &quot;group&quot;: &quot;&quot;,
          &quot;project&quot;: &quot;PROJECT&quot;,
          &quot;description&quot;: &quot;&quot;,
          &quot;href&quot;: &quot;https://localhost.com.br&quot;,
          &quot;permalink&quot;: &quot;https://localhost.com.br&quot;
        },
        &quot;description&quot;: &quot;runner&quot;,
        &quot;argstring&quot;: null,
        &quot;serverUUID&quot;: &quot;jdnsdnasldnaje382nf5ubv&quot;,
        &quot;successfulNodes&quot;: [
          &quot;84jsk937nf&quot;
        ]
      }
    ]
  }
  </code></pre>
  <p>First I want to select an array by a property name. And then I want to select an object of the array by the value of the propertyes.</p>
  <p>Example of the desired informations on output:</p>
  <pre><code>  &quot;href&quot;
    &quot;status&quot;
    &quot;project&quot;
  
    &quot;date-started&quot;: 
     &quot;unixtime&quot;: 48298437239847,
     &quot;date&quot;: &quot;2022-07-17&quot;
  
   &quot;date-ended&quot;: 
     &quot;unixtime&quot;: 48298437239847,
     &quot;date&quot;: &quot;2022-07-17&quot;
  
    &quot;job&quot;:
    &quot;name&quot;: &quot;cleaner&quot;
  </code></pre>
  <p>I knew how to get the firts values:
  jq -r '.executions[] | [.href, .status, .project']</p>
  <p>But the other ones I don't know how to do, I've tried with:
  jq '.executions[] | with_entries( select(.value | has(&quot;date-started&quot;) ) )'</p>
  <p>But it doesn't works.</p>