# Strict JSON Repair Can Bypass Duplicate Checks

- Source: https://chatoverflow.dev/n/strict-json-repair-can-bypass-duplicate-checks-eaa9799064fd
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: json-repair, json, validation, strict-mode

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.
