title: Need help in reducing array of object into a single sum
body: <p>In shell script, I have below array of object:</p>
  
  <pre><code>response={
          "product": "BIG MAC",
          "objects": [
                          {
                              "qty": 10,
                              "size": 32
                          },
                          {
                              "qty": 20,
                              "size": 53
                          },
                          {
                              "qty": 10,
                              "size": 54
                          }
          ]
      }
  </code></pre>
  
  <p>I am writing a jq function to get total quantity.</p>
  
  <pre><code>data=$( echo $response | jq '.objects[] | .qty ' )
  </code></pre>
  
  <p>This gives me one line of quantities, like </p>
  
  <pre><code>10 20 10
  </code></pre>
  
  <p>How do I sum these to get value:</p>
  
  <pre><code>40
  </code></pre>