12 lines
319 B
Python
12 lines
319 B
Python
|
import json
|
||
|
|
||
|
with open("updated.json") as infile:
|
||
|
data = json.load(infile)
|
||
|
|
||
|
duplicate_map = dict()
|
||
|
for item in data["items"]:
|
||
|
if item["name"] in duplicate_map:
|
||
|
print("DUPLICATE: " + str(item["id"]) + " <-> " + str(duplicate_map[item["name"]]["id"]))
|
||
|
else:
|
||
|
duplicate_map[item["name"]] = item
|