Render data directly into data table
Render data directly into data table
Is it possible to render json data without specifying the headers? my json data is dynamic so i want to dynamically update the headers too.
here's my sample json data.
"Data": [
{
"datetime_read": "2016-01-01 00:00:20",
"Air Temperature": "23.6",
"Rainfall Amount": "0.0",
"Air Pressure": "1013.4"
},
{
"datetime_read": "2016-01-01 00:15:16",
"Air Temperature": "23.5",
"Rainfall Amount": "0.0",
"Air Pressure": "1013.3",
"Wind Speed": "3.24",
"Wind Direction": "177.7"
},
{
"datetime_read": "2016-01-01 00:30:16",
"Air Temperature": "23.6",
"Rainfall Amount": "0.0",
"Air Pressure": "1013.2",
"Wind Speed": "5.76",
"Wind Direction": "195.0",
"Air Humidity": "96.3",
"Solar Radiation": "0.0"
} ]
how can I set the keys as headers? thank you