var rows = $('#dg').datagrid('getRows');var data = JSON.stringify(rows); // stringify the rows$.post({ data:{data: data}, //...});