I am trying to render a table in javascript as follows:
$('#serviceTable').DataTable({
responsive: true,
aaData: services,
bJQueryUI: true,
aoColumns: [
{ mData: 'service_name' },
{ mData: 'last_incident' },
{ mData: 'integration' }
]
});
Now the integration field is basically an array of json objects as follows
[{"name":"abc","key":"123"},{"name":"xyz","key":"1234"}]
Here is the table definition:
<table id="serviceTable" class="table table-bordered table-striped">
<thead>
<tr>
<th data-field="service_name" data-formatter="LinkFormatter">Service</th>
<th data-field="last_incident">Last Incident</th>
<th data-field="integration">Integration</th>
</tr>
</thead>
</table>
So on UI I can see [object Object],[object Object] in the column integrations. How do we loop over the json array to display the name field in the column