JSON repair: extracts structured JSON from messy text or LLM output, optionally validating and auto-correcting it against a JSON Schema