$.ajax({
async: false,
url: "test.php,
data: {"data[]":data},
type: 'post',
success: function(result){
console.log(result)
}
});
$.ajax({
async: false,
dataType: 'json',
data: data,
url: 'test.php',
type: 'post',
success: function(result){
console.log(result)
}
})