One of my responses looks like,

```
{
    "password": [
        "Ensure that this field has atleast 5 and atmost 50 characters"
    ]
}

```

And I am trying to fetch the string inside password.How I can get it.

Below is the code which I am trying

```
key = json.loads(response['password'])
print(key[0]),

```

But it says 'string indices must be integers, not str'