Unable to use JSON.parse() after returning data
Unable to use JSON.parse() after returning data

"ajax": {
"url": Ola.apiPath("/transactions/ccsearch"),
"type": "POST",
"data": function (data) {
return "q=" +$('#user_val').val() ;
},
"dataSrc": function(json) {
var ccObj = JSON.parse(json);
console.log("inside data src"+ccObj);
}
},
ERROR:
Uncaught SyntaxError: Unexpected token o
i have got the same error even when i use JSON.parse inside columns custom data function
could u please let me know wat could be the issue?
Answers
We'd need a link to a test page showing the issue please.
Allan