I have an array within JSON document. Below is one item from that array:
{
"generalSolution": "Cloud",
"generalOperator": "MTN",
"genericCountry": "USA",
"vnfProductName": "vEPG;vSAPC;vSGSN-MME",
"vnfRelease": "2.4;1.3;v1.2399999",
"vnfVendor": "Ericsson;Ericsson;Ericsson"
}
I would like to display the data in DataTables as a single row, like this:
Note, that vnf details (vnfProductName
, vnfRelease
, vnfVendor
) can have variable number of entries.
Simply replace
;
by<br>
withString#replace
.This is an example. Here, the original object is altered. Think to adapt id if needed.
Use
render
option to transform your data upon rendering: