I have a javascript object like
{
"Date":{"0":"30-April-2018","1":"27-April-2018","2":"26-April-2018"},
"Open Price":{"0":15.75,"1":16.8,"2":17.5},
"High Price":{"0":15.85,"1":17.0,"2":17.5},
"Low Price":{"0":14.65,"1":15.6,"2":16.35}
}
I want to iterate through all the outer keys such as Date
, Open Price
to create table headers and then iterate through inner elements to create rows. I have already tried this answer, but what it does is iterate through each and every value, even Date
is iterated as D
, a
, t
, e
. Is it possible or is there any other way I can make a table from javascript object.