I have a list that has strings in it, in the form of key:value pairs, something like this
d = ['"id.resp_h": [loopback, unicast, multicast, interface_local_multicast, link_local_unicast, link_local_multicast, unspecified]',
'"id.orig_h": {{ sensor_subnets }}']
and I need to convert it into a dictionary. I've tried many solutions like using json.loads() or ast.literal_eval() but none work.
Any suggestions??
Thanks:)