I am tying to convert the following json to parquet file in azure synapse analytics, to get data from rows[].
The json response has : dimensionsheaders , metricheaders and rows, Where the dimensionsheaders and metricheaders hold the field names and rows hold the corresponding data for these fields. I want the data from dimensionsheaders and metricheaders as the columns names and data from rows as the rows in the results. I tried using flatten, parse transformations with dataflow but was not able to get results.thank you for your help.
the sample json is:
{
"Dimensionheaders": [
{ "name": "XXXX"},
{"name": "XYZ"},
{"name": "YYY"}
],
"Metricsheaders": [
{
"name": "AAA",
"type": "Float"
}
],
"rows": [
{
"Dimensions values": [
{"value": "cccc" },
{ "value: "bbbb"},
{"value": "eeee" }
],
"metrics values": [ {"value": "111111" }]
},
"Dimensions values": [
{"value": "hhhhh" },
{ "value: "fffff"},
{"value": "nnnnn" }
],
"metrics values": [ {"value": "16555" }]
}
],
"rowscount": 2,
}
Thank you!