How to load nested json
How to load nested json
user12345
Posts: 3Questions: 2Answers: 0
Hi,
How can I load an object like this to a table. I am currently converting it to an array of values only but is there a direct way?
0:{
"id": "864",
"firstname": "John",
"lastname": "Doe",
"sin": "",
"dob": null,
"onlease": "",
"type": "",
"phonenumber": null,
"homephone2": null,
"workphone": null,
"mobilephone": null,
"email": null,
"tenantid": null
}
1:
{
"id": "654",
"firstname": "Mr",
"lastname": "MaGoo",
"sin": "",
"dob": "",
"onlease": "",
"type": "",
"phonenumber": null,
"homephone2": null,
"workphone": null,
"mobilephone": null,
"email": null,
"tenantid": null
}
Thank you.
This discussion has been closed.
Answers
Currently no - DataTables requires an array, not an object.
Allan