I need some help to pass Json parameter to the datatable

I need some help to pass Json parameter to the datatable

priyankabhattadpriyankabhattad Posts: 4Questions: 3Answers: 0

I have the json string returned from the database. The representation is
var myList = [ {
"name" : "abc",
"age" : 50,
"hobby" : "swimming"
}, {
"name" : "pqr",
"age" : 25,
"hobby" : "swimming"
}, {
"name" : "xyz",
"age" : 75,
"hobby" : "programming"
} ];

How do I pass this to the datatables.? I have looked for the Ajax json calls, but the implementation is not working.

This discussion has been closed.