Json with multiple properties

Json with multiple properties

ymcagodmeymcagodme Posts: 1Questions: 0Answers: 0
edited March 2012 in General
Hi All,

I used ajax to return my Json objects. My Json looks like this:

{ "aaData":
{
{'addr': [ [XXX], [XXX] ]},
{'member': [ [XXX], [XXX] ]}
}
}

Here is my setting with dataTable:

oTable = $('#member_set').dataTable({
"bJQueryUI": true,
"sAjaxSource": 'query_all',
"sAjaxDataProp": 'aaData.member',
"aoColumns":[
{
"mDataProp": null,
"sClass": 'center',
"sDefaultContent": ''
},
{"mDataProp": "first_name", "sClass": 'center'},
{"mDataProp": "last_name" , "sClass": 'center'},
{"mDataProp": "birthday" , "sClass": 'center'},
{"mDataProp": "gender" , "sClass": 'center'},
{"mDataProp": "grade" , "sClass": 'center'},
{"mDataProp": "activation" , "sClass": 'center'},
]
});

My question is that how can I use "addr" property as well?

Since I have set "sAjaxDataProp": 'aaData.member', how can I use the other properties with mDataProp?

Thank you in advance! : )
This discussion has been closed.