I want to replace part of a string with a list of strings
Eg. with an input string of '{"abc": "##value##", "Xyz": 2}',
I want to replace "##value##" with some list like ["v1", "v2"]
So, the output would look like '{"abc": ["v1", "v2"], "Xyz": 2}'
If the replacement were not a list I would have just used
re.sub('##value##', replacement_value, input_data), however doing so gives an error of
unhashable type: 'list'
Is there another way to achieve this?