title: Jquery ajax wrong data response
body: <p>It looks like that i got wrong type or something going on </p>
  
  <pre><code>function updateCart()
  {
  var dataArray= [];
   var  i=0;
   var item;
  $('.cd-cart .wrapper .body .product').each(function()
  {
    var item=new Array();
    i++;
    var $element = $(this)
    qty=parseInt($element.find('select').val());
    name=$element.find('h3 a').html();
    price=parseInt($element.find('.price1').text().replace('₽',''));
    id=parseInt($element.attr('id').replace('product_',''));
    image=$element.find('img')[0].src;
  item['id']=id;
    item['price']=price;
    item['name']=name;
    item['qty']=qty;
    item['image']=image;
  
    dataArray.push(item);
  });
  var jObject={};
  jObject = JSON.stringify(dataArray);
   $.ajaxSetup({
          headers: {
              'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
          }
      });
  $.ajax({
      url: '/updateCart',
      type: 'get',
      dataType:'json',
       data: ({dataArray:jObject}),
  success:function(data){
            console.log(data);
        },
        error:function(error){
          console.log(error);
        }
  }); 
  }
  </code></pre>
  
  <p>Server-side got return $_GET;
  I got this response from the server :Object {dataArray: "[[],[]]"}
  What can i do to get Normal response?
  P.S dataArray is an array of an array</p>