Let's say we have String like this:
string = "[{'Chr': 'chrX', 'Start': 107844640, 'End': 107844640}, {'Chr': 'chrY', 'Start': 107844641, 'End': 107844641}]"
The goal is to convert that string into a list of dictionaries.
For now I have only managed to convert the String into a list:
str1 = string.replace(']','').replace('[','')
l = str1.replace('"','').split(",")
Unfortunately this adds unwanted characters like '""', how could I get rid of the undesired characters and get the desired result?