$.ajax({url: "http://localhost:8079/clients/add/",type: "POST",crossDomain: true,data: JSON.stringify(somejson)dataType: "json",success: function (response{var resp = JSON.parse(response)alert(resp.status);},error: function (xhr, status) {alert("error");}});