Thanks for reaching out to Microsoft Q&A.
To convert unknown JSON schemas to a SQL database, where the nested arrays of objects will be stored in separate tables, each with a reference ID to their parent.
please follow the following steps:
- Azure Data Factory can be used to convert JSON data to SQL tables. You can create a pipeline in Azure Data Factory that reads the JSON data from a source and writes it to a SQL database sink
- To handle the nested arrays of objects, you can use the Flatten transformation in Azure Data Factory. The Flatten transformation can be used to flatten the nested arrays of objects into separate rows.
- After flattening the data, you can use the Lookup transformation in Azure Data Factory to join the flattened data with the parent data. The Lookup transformation can be used to join the flattened data with the parent data based on a common key.
- Finally, you can write the data to separate tables in the SQL database sink using the Copy transformation in Azure Data Factory. The Copy transformation can be used to write the data to separate tables based on the output of the Lookup transformation.
reference:
Hope this helps. Do let us know if you any further queries.