how to render JSON map as data table
how to render JSON map as data table
Ansar
Posts: 1Questions: 1Answers: 0
this is my response data back from server , its a collection of property name value .
eg : {"propertyname":"proeprtyvalue" , "propertyname":"proeprtyvalue" ,"propertyname":"proeprtyvalue" ........}
how can i display it on data table ?
This discussion has been closed.
Answers
Try this basic example:
https://datatables.net/examples/data_sources/ajax.html
You need to convert associative array into plain array before passing data to jQuery DataTables.
For example:
See this example for code and demonstration.
See more articles about jQuery DataTables on gyrocode.com.