I have the below ajax call to a servlet.
$.ajax({
type: "post",
url: registersubmit.RegisterServlet.json,
dataType: "json",
data:$('#registrationForm').serialize(),
success: function(msg) {
// alert(msg.data);
alert('success'+msg.message2);
},
error: function (xhr, ajaxOptions, thrownError){
alert('HAI');
alert('BYE');
}
});
May I know how we can consume the json object in the servlet
Thanks, Balaji.