ajax - datatables server side response nesting -


simple issue regarding usage of datatables (http://www.datatables.net) , server side data retrieval.
datatables expects special format server, in root of response:

{   "secho": 1,   "itotalrecords": "57",   "itotaldisplayrecords": "57",   "aadata": [     {       "engine": "gecko",       "browser": "firefox 1.0",       "platform": "win 98+ / osx.2+",       "version": "1.7",       "grade": "a"     },...   ] } 

but want nest of in place in json response server:

{   myshit: "",   status: "success",   morestuff: "yoyo",   datatables: { here of json related datatables } } 

i haven't found property in api.
options know about, right now, define columns exact nested property should for.

do know of such property? or can suggest way achieve nesting?

because sajaxsource expects dataset in particular order, have use $.getjson instead have nested layout described


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -