I'm trying to create an HTML table from a JSON file which values can include nested lists.
Example:
{
"entry 1":[
["text1", "text2", "text3"],
["text4", "text5", "text6"],
["text7", "text8", "text9"]
],
"entry 2": "N/A",
"entry 3": [
["text1", "text2", "text3"],
["text4", "text5", "text6"]
],
"entry 4": [
["text1", "text2"],
["text3", "text4"]
]
}
My goal is to create an HTML table with a predefined header for the two columns:
header_title_1header_title_2
That will never change, and the table should look like this:
Thanks for your help !

Object.keys(obj)gives keys which can be iterated over to get desired table HTML