I know asking a question without some code to show for it is frowned upon, but iam at a complete loss. I have simple JSON files like this for example (this is simplified but the the general structure is indentical):
[{
"key1" : "some value",
"key2" : 123
},{
"key1" : "some other value",
"key3" : [
"arrayVal1",
"arrayVal2"
]
}]
How could i turn it into a HTML table something like this?
+----------+-------+---------+
| key1 | key2 | key3 | < this should be a th
+----------+-------+---------+
|some value| 123 | |
+----------+-------+---------+
|some ot...| |arrayVal1|
| | |arrayVal2|
+----------+-------+---------+
Sidenote: i have no idea what the names of the keys are and what kind of values (string, number, array) they hold in advance.
I can upload and parse the json files on the site, so thats not an issue here, just got no idea how to show them.