DataTable and Nested Array Data with Html Formating.
DataTable and Nested Array Data with Html Formating.
Hello,
The below is my sample Json Data. and I would like to use <ul><li> html format with "summaryList" array.
json
"data": [
{
"regulation": "C.02.004 - Premises",
"summaryList": [
"aaaa.\n",
"bbbbl.\n",
"ccccc."
],
"summaryNo": "1"
}
```]
The below is for I would like to display.
Html
Observation Number Regulation
Summary of Observation
1
C.02.006 - Personnel <ul>
<il>aaaa</li> <il>bbbb</li>
<il>cccc</li> </ul>
Here is the code.
jQuery
window["wb-tables"] = {
"processing": true,
"ajax": {
"url": reportCardUrl,
},
"columns": [
{ "data": "summaryNo" },
{ "data": "regulation" },
{ "data": "summaryList[,]"}
]
}
Any Idea would be greatly appreciated. Thank you.