How to load nested json
How to load nested json
![user12345](https://secure.gravatar.com/avatar/05124aa09d5ecdaee60268facce1fa70/?default=https%3A%2F%2Fvanillicon.com%2F05124aa09d5ecdaee60268facce1fa70_200.png&rating=g&size=120)
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