ADF - Adding element to JSON object

Shezad Chishti 1 Reputation point
2021-12-14T10:29:11.34+00:00

Hi Guys,

Is there a simple way to append to a JSON object within Azure Data Factory?

  1. We retrieve the JSON object from Cosmos. The type is shown as 'complex'
  2. We then create calculated columns.
  3. We then want to add those columns within the JSON object.

I know we could create an azure function but was wondering if there was anything we could do in ADF.

Your advice will be appreciated.

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

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2021-12-15T16:32:48.323+00:00

    Hi @Shezad Chishti ,

    Thank you for posting query in Microsoft Q&A Platform.

    You can do that using Mapping Data flows.

    Source data flow will take your Json data and then use transformations according to your requirement and finally load data back to sink in json format.

    Hope this will help. Please let us know if any further queries.

    -------------------

    Please consider hitting Accept Answer. Accepted answers helps community as well.