jsonshim - get the JSON out of a model's answer, or find out you can't
Recover structured output from LLM replies: fences, prose, trailing commas, single quotes, comments, and truncation. Never invents a value. One file, stdlib only, CC0. Held-out 28/30 vs json.loads 9/30.