I need to generate a docx from a data set in which there are variable tag names:
{
"month": "January",
"year": "2020",
"workers": {
"John": [
{
"days": "12",
"shop": "Shop #1"
}
],
"Bob": [
{
"days": "11",
"shop": "Shop #1"
},
{
"days": "4",
"shop": "Shop #2"
}
]
}
}
Of course I can neither know the number nor the names of the workers.
It might be simple but I can't really get to produce the template-side code to parse such data. Any tips?