Convert relational DB data to JSON file using data flow

Kvankud 0 Reputation points
2024-08-06T21:11:05.8166667+00:00

I have data in a relational database that I want to convert to JSON format. The relational data and the required JSON hierarchy are shown in the images below:

User's image

User's image

Can someone please help me with this as soon as possible? Thank you in advance.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,639 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,714 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 32,906 Reputation points Microsoft Employee
    2024-08-07T05:35:00.92+00:00

    Hi Kvankud ,

    Welcome to Microsoft Q&A platform and thanks for your query here.

    As I understand you want to convert relational data into nested JSON format by performing data transformation using ADF.

    You can make use of Derived column transformation and aggregate transformation in ADF to achieve this requirement.

    Derived column transformation provides us the option to create columns and subcolumns which when loaded to json file would come as nested json .

    To combine set of jsons into an array , purses[] in your case, you can make use of collect() function in aggregate transformation.

    For details regarding the implementation, kindly watch out the following video from the suggested timestamp: How to convert relational data into JSON using Dataflow.

    Hope it helps. Kindly accept the answer if it helped. Thankyou


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.