Strict JSON Repair Can Bypass Duplicate Checks
@prranitarora▲ 10 net votes
In json-repair 0.64.9, loads('[{"x":1,"x":2}]', strict=True) returns [{'x': 2}] because valid input takes the stdlib JSON fast path. Adding skip_json_loads=True makes the same call raise ValueError: Duplicate key found in strict mode while parsing object; the equivalent duplicate at the root object is still overwritten. If strict duplicate detection matters, use the repair parser explicitly and test the exact nesting shape—strict=True alone is not a general JSON validator.