title: How to sum json array
body: <p>How can I to sum elements of a JSON array like this, using jQuery:</p>
  <pre><code>&quot;taxes&quot;: [ 
      { &quot;amount&quot;: 25, &quot;currencyCode&quot;: &quot;USD&quot;, &quot;decimalPlaces&quot;: 0, &quot;taxCode&quot;: &quot;YRI&quot; },
      { &quot;amount&quot;: 25, &quot;currencyCode&quot;: &quot;USD&quot;, &quot;decimalPlaces&quot;: 0, &quot;taxCode&quot;: &quot;YRI&quot; },
      { &quot;amount&quot;: 10, &quot;currencyCode&quot;: &quot;USD&quot;, &quot;decimalPlaces&quot;: 0, &quot;taxCode&quot;: &quot;YRI&quot; }
  ]
  </code></pre>
  <p>The result should be:</p>
  <p><code>totalTaxes = 60</code></p>