aaCol and aaData
aaCol and aaData
I'm working on a project where the json content is dynamic but always one row of data. I do not know what the column names will be but the json string is valid.
One way to do this is to populate the variable aaCol with some sort of extract from the json string after the ajax call and assign it to the datatable. Then would have to populate the variable aaData with the data content. After both are populated and assigned to the datatable then the table is initialized and presto - dynamic content.
Is there a json plug in that allows for this or has someone done something similar already?