I'm trying to insert a sub string right after a specific closing curly brace of a string.
For example let's say the full string looks like following:
"{records#QUERY# { edges { node { id legalname countryiso naicscode naicsdescription } } <need to place another string here> } }"
So I'd need to like append a string in that place holder <>
above (please note that in the original string this place holder won't be provided).
Basically I need to find out the closing curly brace of the second opening curly brace and place it before that.
Any help or pointers could be appreciated.