Let's say I have a list of dictionaries but in string format,

```
var = " [ {'key1': 'value1'}, {'key2': 'value2'} ] "

```

In the variable var, there is a list that contains two dictionaries and this whole thing is a string,
So my question is that how you can convert the type of var which is a string right now to a list.