Edit in JSFiddle

$.ajax({
    url: "/echo/json/",
    data: {json: JSON.stringify({firstName: "Jose", lastName: "Romaniello"})} ,
    type: "POST",
    success: function(person){ 
        alert(person.firstName + " saved."); 
    },
    error: function(){ 
        alert("error!");
    } 
});