EDIT 8/29/2012
Starting with version 1.9, you can disable the ability to have a root JSON property.
"sAjaxDataProp": "",
This is most likely what you will get with most JSON serializers.
Or tune it
"sAjaxDataProp": "myData",
In datatables 1.8, you can format your json as follows:
{
"aaData": [
{
"DT_RowClass": "",
"description": "",
"pkgLineTree": {
"treeId": {
"name": "Jacksonville"
}
}
},
{
"DT_RowClass": "",
"description": "",
"pkgLineTree": {
"treeId": {
"name": "Jacksonville"
}
}
}
]
}
And in your data properties add this
"aoColumns": [
{
"mDataProp": "pkgLineTree.treeId.name"
},
{
"mDataProp": "shortname"
},
{
"mDataProp": "description"
},
{
"mDataProp": "lineStatus"
}
],
source
share