I need to extract each dictionary from list in python?

So I have an API which returns a list as a string

words = "[[{'aaa':'123', 'bbb':'456',.....}, {'ccc':'123', 'ddd':'456',.....}, {'eee':'123', 'fff':'456',.....}]]"

I need to covert to readable data and remove the nested list

word = [{'aaa':'123', 'bbb':'456',.....}, {'ccc':'123', 'ddd':'456',.....}, {'eee':'123', 'fff':'456',.....}]

How do I do it in python?


As the nested list is just the first item of the superior list you can just pull the first item of that superior list.

word = words[0]