I have the following JSON:
[
{
"id":"78",
"packaging": "0",
"created_at": "2013-01-28 13:46:41",
"updated_at": "2013-01-28 13:46:41",
"Clients": {
"id": "6",
"Name": "Some Name",
"Address": "0000000",
"Email":"[email protected]"
}
},
{
"id":"79",
"packaging": "0",
"created_at": "2013-01-28 13:46:41",
"updated_at": "2013-01-28 13:46:41",
"Clients": {
"id": "9",
"Name": "Some Other Name",
"Address": "0000001",
"Email":"[email protected]"
}
}
]
I have verified that it is valid JSON on Jsonlint.com.
I have managed to reference the unnested data as below:
{"sTitle":"Id","mData":"id"},
{"sTitle":"Created At","mData":"created_at"},
{"sTitle":"Updated At.","mData":"updated_at"},
Now I want to be able to reference the Clients' Name on datatables.
How do I do this using mData?
"Clients.Name"?