How to load nested json

How to load nested json

user12345user12345 Posts: 3Questions: 2Answers: 0
edited December 2014 in Free community support

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.

Answers

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    Currently no - DataTables requires an array, not an object.

    Allan

This discussion has been closed.