Hi TIANSHU LIN ,
Welcome to Microsoft Q&A platform and thanks for posting your question here.
As I understand your query, you are trying to flatten the above json using flatten transformation in mapping dataflow , however, the 'entities' property is not an array which makes it difficult to flatten.
You can use aggregate transformation , keep 'group by' tab as blank and in 'aggregate tab' use collect
function for 'entity' property to convert the json into array. You can then use the same to flatten the data. However, when I tried to repro your case , it looks like each of the jsons present in entities are having different key names ie. '123','234' etc . Although the json is valid, however, it doesn't have a fixed schema. So, what you are trying to achieve as the output dataset is not possible via mapping dataflow.
I would encourage you to write your own custom code using C#,JAVA or python and execute the same via custom activity in ADF.
Hope it helps. Please accept the answer by clicking on Accept answer
button