ADF - converting list of lists into a proper JSON format

Patryk Sobczak 0 Reputation points
2024-09-25T18:29:34.62+00:00

Hello,

I'm pretty new to ADF and I can't wrap my head around one case.

To keep it simple:

I have a source (REST API response), which theoretically is JSON but it doesn't have a "proper" JSON format.

It's supposed to be a simple table but it looks like that:

{
  "Fields": [
    "Region",
    "Market",
    "Country/Territory",
    "City",
    "2031"
  ],
  "Data": [
    [
      "Europe",
      "Central Europe",
      "Czech Republic",
      "Kvasiny",
      43323
    ],
    [
      "Europe",
      "Central Europe",
      "Czech Republic",
      "Mlada Boleslav",
      40224
    ],
    [
      "Europe",
      "Central Europe",
      "Hungary",
      "Esztergom",
      40416
    ],
    [
      "Europe",
      "Central Europe",
      "Hungary",
      "Kecskemet",
      0
    ]
  ]
}

Now, I'd like to use a Parquet file or at least a JSON file as a sink.

How can I approach this?

I was playing with mapping data flows but I'm not sure on how to proceed.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,917 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,679 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 10,491 Reputation points
    2024-09-25T19:58:58.4666667+00:00

    Hello Patryk Sobczak,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you would like to manage the conversion and storage of your data using Azure Data Factory.

    Regarding your questions, using a Parquet or JSON File as a Sink required many steps however, the links below will guide you through:

    Also, use this link below to see more details on how to convert List of Lists into Proper JSON Format in ADF:

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


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.