简体   繁体   中英

Azure Data Factory copy nested JSON to SQL table

Does anyone have an easy way to convert nested JSON to a flat SQL table? Just want to repeat the higher level data on each of the lower level detail. It looks like it can be done in mapping, I have tried as per the MS documentation but got a table full of NULL. Here is what I have tried and the result. json

Option 1 Result: Only returns the first record of the 'assignedLicences' Option1

Option 2: Returns multiple 'assignedLicenses' for each user, but only returns the first user id in each page. Option2

Option3: as per the MS documentation Result: returns all NULL values Option3

You can have a try:

1.click import schemas button

2.if you have a JsonArray,select it.

3.you can directly see and edit the fields' JSON paths by opening Advanced editor .

映射

Here is a Microsoft documentation about it.Please refer to this .

Hope this can help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM