data flow - search and replace value - .json data

arkiboys 9,706 Reputation points
2022-03-20T08:52:26.003+00:00

Hello,
I am receiving .json files and I process them in dataflow1.
How is it possible, to do a search and replace inside the.json file.
For example, if I find the work novs}, I would like to replace with nod}
Thank you

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2022-03-21T14:08:51.717+00:00

    Hi @arkiboys ,

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

    As per my understanding you would like to replace data inside json file using dataflows. Kindly correct me if I am wrong.

    Here your intention is randomly to replace data inside json file. So that means here we should consider taking entire json file as single column data and then use derived column transformation with replace() function in it to do our job.

    To achieve this, we should consider using csv type dataset on top of our json file with no delimiters for rows and columns. Kindly check below images for better idea.

    Dataset for json file with DelimitedText as formatter.
    185273-image.png

    use above dataset as source transformation and then use derived transformation to replace desired values.
    185243-image.png

    Hope this helps. Please let us know if any further queries. Thank you.

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

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most 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.