In data flow, use derived column to create a new column that will hold that structure { column1, row1 }. Let's call it myStruct for now. After the derived column, add an Aggregate transformation. Don't set a group-by in the aggregate and create a new aggregate called myStructs with this expression: collect (myStruct).
Output file as JSON array type
Abhijit Bhadra
91
Reputation points
Suppose i have already transformed JSON file(which is transformed from sql table through dataflow) as below
{"column1" : "A1","row1" : "B1"}
{"column2" : "A2","row2" : "B2"}
Is it possible to get the file as below structure using dataflow
[
{
"column1" : "A1",
"row1" : "B1"
},
{
"column2" : "A2",
"row2" : "B2"
}
]
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
Answer accepted by question author
-
MarkKromer-MSFT 5,231 Reputation points Microsoft Employee Moderator2022-05-12T20:41:13.497+00:00