{
"data": [
{
"sheetname": "Sheet1",
"datas": [
{
"cloumn1": "6986",
"cloumn2": "1",
"cloumn3": "Server01"
}
]
},
{
"sheetname": "Sheet2",
"datas": [
{
"cloumn1": "6986",
"cloumn2": "1",
"cloumn3": "Server01"
},
{
"cloumn1": "6986",
"cloumn2": "1",
"cloumn3": "Server01"
}
]
}
]
}
How to convert this json into datatable?
Condition:
- Every item in "Data" attribute should be in different tab.(in above example there are 2 items so 2 worksheets should be created)
- If "datas" attaribute contain 1 object --->1 row in 1 sheet
- If "datas" attaribute contain 2 object --->2 rows in 1 sheet