$.ajax({ type: "POST", url: ‘url', data:JSON.stringify(dataObject) , contentType: "application/json", dataType: 'json', success: function(json){ alert(json); }, error: function(){ alert('fail'); } });
$.ajax({ type: "POST", url: ‘url', data:JSON.stringify(dataObject) , contentType: "application/json", dataType: 'json', success: function(json){ alert(json); }, error: function(){ alert('fail'); } });