How do I use the dataSrc from Serverside?

How do I use the dataSrc from Serverside?

YoonseonwoongYoonseonwoong Posts: 1Questions: 0Answers: 0
edited May 2015 in Free community support

I would like to use json parsing the data in the data.

Sorry, I don't speak english very well.

plz help me..

------------json data--------------

{
"code": 200,
"data": {
"recordsFiltered": 4861,
"data": [
{
"owner": {
"label": "anonymouse",
"value": "106705"
},
"created": "20150518 155730",
"ip": "61.250.201.75",
"modifier": {
"label": "anonymouse",
"value": "106705"
},
"idle_possession": "0.9994555313569492",
"cpu_seq": "400718241",
"user_possession": "5.000222232099204E-4",
"high": "",
"low": "",
"cpu_type": {
"label": "Detail",
"value": "detail"
},
.
.
.
],
"draw": 1,
"recordsTotal": 4861
},
"message": "Success"
}

--------------------javascript----------------------

"ajax": {
"url": tableData.url,
"dataSrc": function (json) {
return json.data;
}
},

---------------------result-------------------
No matching records found

This discussion has been closed.