Give Datatables a specific part of a returned json string from an Rpc server.

Give Datatables a specific part of a returned json string from an Rpc server.

gideonkmgideonkm Posts: 1Questions: 1Answers: 0

i'm fatchin my data from an Rpc server and it returns a json string with id, jsonrpc,and result as main parts with the result returning what i desire to be shown on the table.

{
jsonrpc: "2.0"
id: "1"
result: "{"iTotalDisplayRecords":"2","iTotalRecords":"2","aaData": [["1","Kenya","Nairobi","0","34"],["2","USA","New York","70","38"]],"sEcho":0}"
}

I would like a way to tell datatables to only choose the result part of the jsonrpc response in order to display the returned data as expected. in order for it to e able to display the data on the table

Help appreciated.

This discussion has been closed.