title: jquery json return data adding two numbers
body: <p>I'm using Jquery post method to get data from php file which returned a a multidimensional array which has productid, name and price in it in the following format</p>
  
  <pre><code>[
      { product_id: 34, product_name: "Coca-Cola", price: 0.7 },
      { product_id: 24, product_name: "Shredded Beef Steak Wrap", price: 2.99 }
  ]
  </code></pre>
  
  <p>when i add them those two prices it does not add up together infect they concatenate. 
  this is how i'm trying to add them up</p>
  
  <pre><code>$.each(data, function(i, result) {
      //total  = total + +result.price;
      //total += +result.price;
      //total += result.price;
      //total += +total + +result.price;
      //total = total * 1 + result.price;
  });
  $("#cart_total").empty();
  $("#cart_total").append(output);
  </code></pre>
  
  <p>Any idea what should i do to get this right</p>
  
  <p>Regards</p>