I have a data table and response is coming from the API. Now I want to display that information in that data table. The response is as below
[
{
"server_id": "123.123.12.12",
"domain": null,
"count_date": "2018-03-02",
"bounce_count": "281494",
"deliver_count": "558350"
},
{
"server_id": "123.123.12.12",
"domain": null,
"count_date": "2018-03-03",
"bounce_count": "1",
"deliver_count": "0"
},
{
"server_id": "123.123.12.12",
"domain": "test.com",
"count_date": "2018-03-05",
"bounce_count": "444",
"deliver_count": "194747"
},
]
I want to populate the above information in a data table so that keys of that json are table headers and values in rows below