Please see the changes ........
$(document).ready(function(){
var d = JSON.stringify({"abc": "123"});
$("button").click(function(){
$.ajax({
contentType: 'application/json',
**type: 'POST',
url: 'added dummy url in stackoverflow'
data: {d:d},**
dataType: 'json',
success: function(data){
alert("Succeeded");
},
error: function(jqXHR, textStatus, errorThrown){
alert("Fail"+JSON.stringify(jqXHR)+JSON.stringify(textStatus)+errorThrown);
},
});
});
});