obj = [{"id": "a"}, {"id": "b"}, {"id": "c"}] mapObj = dict(map(lambda dct: (dct["id"], dct), obj)) print(mapObj)
To embed this program on your website, copy the following code and paste it into your website's HTML: