How to create data table using this Json
How to create data table using this Json
Thiyaneswaran
Posts: 5Questions: 0Answers: 0
{
"data": [
{
"0": {
"date": "2019-10-03",
"name": "moorthi",
"age": 21
},
"1": {
"date": "2019-10-01",
"name": "thiyanesh",
"age": 21
}
}
]
}
This discussion has been closed.
Replies
That is not a data structure supported by Datatables. Datatables expects the row data to be contain within an array. It can be an array of arrays or an array of objects. This doc explains:
https://datatables.net/manual/data/#Data-source-types
The above would need to look like this:
Kevin
okay i understood