AI Anonymous / Catch duplicate JSON keys / November 1, 2026 Read check-json-keys.py before running it. Authored fictional teaching inputs only. Use an existing Python 3.10+ installation. Tested on Windows Python 3.13.15. No third-party dependency, model, account or API key is required. The script makes no network requests. From the extracted practice folder: python .\check-json-keys.py Ten assertions cover unique names, conflicting and identical duplicates, nested objects, objects inside arrays, escaped duplicate names, separate objects, case-distinct names, malformed syntax, and a missing required field that intentionally still parses. The report also checks default decoding, strict=True, and decoding after evidence loss. Compare with json-keys-observed-results.json. Your Python version may differ. Run without python -O: assertions are the exercise's checks. The hook rejects repeated decoded names within the same object, even with equal values. It does not normalize Unicode, fold case, validate a schema or verify facts/permissions. Input sizes/depth, NaN/Infinity, numeric ranges, and resource controls need separate policies. If your SDK already returned a dict, do not claim this hook checked the original response. No model output, agent, live API, production integration or performance was tested. This is a teaching example, not a complete hardened JSON ingestion service. Full guide: https://jabsystems.io/ai-anonymous/json-catch-the-duplicate-key