total up json data?
<p>[UPDATE]</p>

<p>Thanks guys,final code:</p>

<pre><code>        var EUR_share_cost = 0;
        var USD_share_cost = 0;
        var GBP_share_cost = 0;
        var EUR_total_cost = 0;
        var USD_total_cost = 0;
        var GBP_total_cost = 0;

        $.ajax({
            url: '/producer/json/index/period/month/empties/'+empties+'/fields/'+fields+'/start/'+start+'/end/'+end+'',
            async: false,
            success: function(returned_values) {

                 $.each(returned_values.aaData, function(index, item) {

                    if (item[2] == 'EUR') {
                        EUR_share_cost  += parseFloat(item[5]);
                        EUR_total_cost  += parseFloat(item[3]);

                    } else if (item[2] == 'USD') {
                        USD_share_cost += parseFloat(item[5]);
                        USD_total_cost += parseFloat(item[3]);

                    } else if (item[2] == 'GBP') {
                        GBP_share_cost += parseFloat(item[5]);
                        GBP_total_cost += parseFloat(item[3]);
                    }
                });
            }
        });

        $('#EUR_share_cost').html(EUR_share_cost);
        $('#USD_share_cost').html(USD_share_cost);
        $('#GBP_share_cost').html(GBP_share_cost);

    }

});
</code></pre>
