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'])])
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c5a0-2c2f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c5a0-2c2f0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?