title: Output specific part for each block
body: <p>I have a json parsed by jq, but I need to go through each block and get the name  and lastModified and then store them so I can delete the zip file which is older then a specific date. For this example lets say 2020-06-25 is an &quot;old package&quot;
  So we have da-editor-user-groups-1.7.0.zip and lastModified 2020-06-25
  I need to filter it by all such packages by lastModified  attribute with jq</p>
  <pre><code>{
      &quot;success&quot;: true,
      &quot;results&quot;: 6,
      &quot;total&quot;: 6,
      &quot;more&quot;: false,
      &quot;offset&quot;: 0,
      &quot;hits&quot;: [
          {
              &quot;path&quot;: &quot;/etc/packages/com.change.aem.platform/change-editor-user-accounts-1.3.0.zip&quot;,
              &quot;excerpt&quot;: &quot;/etc/packages/com.change.aem.platform/change-editor-user-accounts-1.3.0.zip&quot;,
              &quot;name&quot;: &quot;change-editor-user-accounts-1.3.0.zip&quot;,
              &quot;title&quot;: &quot;change-editor-user-accounts-1.3.0.zip&quot;,
              &quot;lastModified&quot;: &quot;2020-06-25 17:50:12&quot;,
              &quot;created&quot;: &quot;2020-06-25 17:50:12&quot;,
              &quot;size&quot;: &quot;36 KB&quot;,
              &quot;mimeType&quot;: &quot;application/zip&quot;
          },
          {
              &quot;path&quot;: &quot;/etc/packages/com.change.aem.platform/change-editor-user-accounts-1.3.0.zip/jcr:content/vlt:definition/thumbnail.png&quot;,
              &quot;excerpt&quot;: &quot;/etc/packages/com.change.aem.platform/change-editor-user-accounts-1.3.0.zip/jcr:content/vlt:definition/thumbnail.png&quot;,
              &quot;name&quot;: &quot;thumbnail.png&quot;,
              &quot;title&quot;: &quot;thumbnail.png&quot;,
              &quot;lastModified&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;created&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;size&quot;: &quot;2 KB&quot;,
              &quot;mimeType&quot;: &quot;image/png&quot;
          },
          {
              &quot;path&quot;: &quot;/etc/packages/com.change.aem.platform/.snapshot/change-editor-user-accounts-1.3.0.zip&quot;,
              &quot;excerpt&quot;: &quot;/etc/packages/com.change.aem.platform/.snapshot/change-editor-user-accounts-1.3.0.zip&quot;,
              &quot;name&quot;: &quot;change-editor-user-accounts-1.3.0.zip&quot;,
              &quot;title&quot;: &quot;change-editor-user-accounts-1.3.0.zip&quot;,
              &quot;lastModified&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;created&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;size&quot;: &quot;7 KB&quot;,
              &quot;mimeType&quot;: &quot;application/zip&quot;
          },
          {
              &quot;path&quot;: &quot;/etc/packages/com.change.aem.platform/.snapshot/change-editor-user-groups-1.7.0.zip&quot;,
              &quot;excerpt&quot;: &quot;/etc/packages/com.change.aem.platform/.snapshot/change-editor-user-groups-1.7.0.zip&quot;,
              &quot;name&quot;: &quot;change-editor-user-groups-1.7.0.zip&quot;,
              &quot;title&quot;: &quot;change-editor-user-groups-1.7.0.zip&quot;,
              &quot;lastModified&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;created&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;size&quot;: &quot;12 KB&quot;,
              &quot;mimeType&quot;: &quot;application/zip&quot;
          },
          {
              &quot;path&quot;: &quot;/etc/packages/com.change.aem.platform/change-editor-user-groups-1.7.0.zip&quot;,
              &quot;excerpt&quot;: &quot;/etc/packages/com.change.aem.platform/change-editor-user-groups-1.7.0.zip&quot;,
              &quot;name&quot;: &quot;change-editor-user-groups-1.7.0.zip&quot;,
              &quot;title&quot;: &quot;change-editor-user-groups-1.7.0.zip&quot;,
              &quot;lastModified&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;created&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;size&quot;: &quot;31 KB&quot;,
              &quot;mimeType&quot;: &quot;application/zip&quot;
          },
          {
              &quot;path&quot;: &quot;/etc/packages/com.change.aem.platform/change-editor-user-groups-1.7.0.zip/jcr:content/vlt:definition/thumbnail.png&quot;,
              &quot;excerpt&quot;: &quot;/etc/packages/com.change.aem.platform/change-editor-user-groups-1.7.0.zip/jcr:content/vlt:definition/thumbnail.png&quot;,
              &quot;name&quot;: &quot;thumbnail.png&quot;,
              &quot;title&quot;: &quot;thumbnail.png&quot;,
              &quot;lastModified&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;created&quot;: &quot;2020-06-25 17:50:13&quot;,
              &quot;size&quot;: &quot;2 KB&quot;,
              &quot;mimeType&quot;: &quot;image/png&quot;
          }
  ]
  }
  </code></pre>
  <p>Question is question how to create a cycle which will first check contents of the given block</p>