Python handles json files

(python)
existing json file
[{"company-name":"11","url":"abc"},
{" company-name":"11","url":"cbd"},
{"company-name":"22","url":"fgh"}]
I want to delete the duplicate" company-name" "value in all elements, that is, only one item is retained in the element with a company-name of 11. How can I delete it through the key value" company-name"? Then I need to deal with files where you don"t know which company-name is a duplicate. how do you write it?

Apr.02,2021

a = [{'company-name':'11','url':'abc'},
{'company-name':'11','url':'cbd'},
{'company-name':'22','url':'fgh'}]
d = set()
-sharp ,
print([i for i in a if i['company-name'] not in d and not d.add(i['company-name'])])
Menu