Repair bounded near-JSON into valid deterministic JSON and optionally validate a safe JSON Schema subset.