I want add the JSON data to Datatable what i get from AJAX post Response, but my process not working, can any one suggest anythig ?
My ajax Code :
$.ajax({
    method: "POST",  
    url: "Controller",  
    cache: false,
    data: { ReqAction: "getALLUserData" }, 
    success: function(data) {
        return data;                
    }
});
as AJAX Response i am getting as :
[{
    "user_code":1,
    "user_ref_number":"100809",
    "user_grp_code":2,
    "user_name":"ememhasan",
    "user_pass":"pass123",
},
{
    "user_code":1,
    "user_ref_number":"100809",
    "user_grp_code":2,
    "user_name":"ememhasan",
    "user_pass":"pass123",
},
{ more ....}
]
So how can i use this to my Datatable ?
Thanks in Advance.
 
    