How to get Json data in Data table in Javascript ????
How to get Json data in Data table in Javascript ????

Example
var variable="{'name':'dhawal bhatt','age':'21'},{'name':'vijal','age':'32'}"
In
$('table_name').DataTable({
data:variable
});
This discussion has been closed.
Answers
Hi @dhawalbhatt ,
This example should help. As you have objects, you'll also need to defined the source with
columns.data
,Cheers,
Colin
In addition to Colin's suggestion you will need place your row objects in an array. Currently they are in a string. For example:
Kevin
Out of interest, why are you defining it as a string at all?
Allan