'search and replace in .json file content - data factory

Using data factory, how is it possible to do a search and replace the content of .json file? for example for the following I would like to have [ and ] as you see below:

...
offices{name:dfdfd, home:tytty},{garden:dfddfdf, home:dfdfdf}
...

to be changed to

    ...
offices[{name:dfdfd, home:tytty},{garden:dfddfdf, home:dfdfdf}]
...


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source