Uncategorized

issue in python list – Stack Overflow



I have a list of strings in my python application. Each string represents a dictionary. Here is an example input:

['{"ID": "1234", "Name": "AAA", "DEPT": "CCC", "SRC": "DL"}', '{"ID": "1234", "NAME": "AAA", "DEPT": "CCC", "SRC": "SNF"}']

I need to convert these strings to their equivalent dictionaries. The output should be like:

[{"ID": "1234", "Name": "AAA", "DEPT": "CCC", "SRC": "DL"}, {"ID": "1234", "NAME": "AAA", "DEPT": "CCC", "SRC": "SNF"}]



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *