I am trying to do two things:
- Search a JSON file for a string ("TODO")
- Replace that string with the string that occurred previously ("Start Quiz")
So, all the TODO's have to be replaced by the string occurring in "englishDefault".
I have the following JSON:
{
"semantics": [
{
"englishLabel": "Quiz introduction",
"fields": [
{
"englishLabel": "Display introduction",
},
{
"englishDefault": "Start Quiz",
"default": "TODO"
}
]
}
]
}
Part 2 has been solved already, but I am having trouble extending the answer: Replace with previous string in a JSON array