Below is my ajax call:-
$.ajax({
url: '/bin/commersenext/assetUpload',
type: 'POST',
contentType:'application/json',
data: JSON.stringify(ob),
dataType: 'json',
success:function(msg){
alert("data"+msg);
console.log(msg);
}
});
and when trying to read the data
String tabledata = request.getParameter("data");
getting null pointer exp.
But if i use below line of code m able to read the data.
BufferedReader br = new BufferedReader(new
InputStreamReader(request.getInputStream()));