Azure Data Factory json manipulation

MS Prog 471 Reputation points
2023-03-23T06:50:11.99+00:00

Hi,

Good day.

We have an input JSON that is of the following schema:

{
  "result": [
    {
      "table": "test1",
      "field": "completed_on",
      "sys_id": "7d6a0a84dc0",
      "created_by": "user1"
    },
    {
      "table": "test2",
      "field": "statew",
      "sys_id": "a0a84dc0",
      "created_by": "user2"
    }
  ]
}

This needs to be transformed to a array of objects as below:

[{"table": "test1","field": "completed_on","sys_id": "7d6a0a84dc0","created_by": "user1"},
 {"table": "test2","field": "statew","sys_id": "a0a84dc0","created_by": "user2"}
]

As you can see, we removed the "result" element from the input.

Any way I could achieve this transformation in ADF please?

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

1 answer

Sort by: Most helpful
  1. MS Prog 471 Reputation points
    2023-03-27T00:20:09.94+00:00

    Hey @ShaikMaheer-MSFT

    The requirement is to read an json from a blob container, transform it and store it another container. I need help to do the transformation i.e. remove the root node "result" so we get an json array as described in my orignal post. This transformed json needs to be stored inanother blob container.

    I need help to understand how i can achieve this transformation please

    0 comments No comments