So I have some json files which they have in certain senteces this:
"message": "Merge branch " master " of example-week-18"
And while there are double quotes inside the messages items the json gets destroyed.
So basicaly I want to use the replace()
method of string but to replace the double quotes with single quotes inside the double quotes of the messages item. I guess I have to use regular expression + replace(). ?
A desired outcome would be this:
INPUT:
"message": "Merge branch " master " of example-week-18"
"message": "Don"t do it"
OUTPUT:
"message": "Merge branch ' master ' of example-week-18"
"message": "Don't do it"