How to Return a String from a List of Dictionaries code example Example: convert string to list of dictionaries import ast ast.literal_eval(string_data)