I'm trying to create a dynamic table based on a JSON. The problem is that I need to make the header of the table is filled with the data of a subkeys, that is, I have the following:
{
"num_prod": 17,
"total": 17,
"articulo": [
{
"nombre": "Camiseta",
"talla": "XL",
"dsc": "100%"
}
Well, I need the header to be filled with name, size and dsc dynamically, since the goal is that it can be used for more databases without having to be modifying the code. I have suggested Object.keys, but they give me the num_prod, total and article values. Thank you very much in advance