I have a string:
str = '[\'RED\', \'GREEN\', \'BLUE\']'
I want to parse it to
list = ['RED','GREEN','BLUE']
But, I am unable to do so.
I tried to parse using json.loads:
json.loads(str)
It gave me:
{JSONDecodeError}Expecting value: line 1 column 2 (char 1)