Replace files content in a folder

I have a folder which contains subfolder and many json files. I need to create a pipeline where can filter the folder and find files with content “” and replace with “[{}]”. remember not all files contain , some of files has only .

Can you add more details on where this folder is (s3, sftp, ftp, smb) and what type of files are you looking for (json,xlsx,csv) ?