Validate + format JSON, minify it, and generate a stable SHA-256 fingerprint (useful for receipts, caching, and diffing). No external requests.
Repair rules: remove JS-style comments + remove trailing commas in objects/arrays (best-effort). If it still fails, it stays failed.