I have a .json file and I want to search and replace } with },. However, I want to apply this only in the case where I have the text "item_secret": "98ax3fsrv"}. The string 98ax3fsrv will differ both in length and content. So I am actually looking for something like "item_secret": "%s"} and replace it with "item_secret": "%s"},.
Is there any way to apply this search and replace after which combination of strings?