Transform a regular array into an array of objects inside a Mapping Data Flow in Azure Data Factory

Jose Martinez 0 Reputation points
2024-07-01T11:56:30.9366667+00:00

In azure data factory, I have a column which is an arrayof strings like in this (image below):

costGroup = ["GH", "APT"]

User's image

Because I need to output in Json format later on, I need to transform it to an array of objects like this:

costGroup = [
                {"code": "GH"}, 
                {"code": "APT"}
            ]

I have been experiementing quite a bit with derived column transformation and with array functions but no success so far... any hint please?

Thanks in advance!

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,675 questions
{count} votes

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.