Trailing comma and unquoted keys
{name:"Ada",items:[1,2,],}The repair list identifies each syntax edit; canonical output sorts object keys without claiming semantic correctness.
Repair malformed JSON locally with an auditable change log.
Context Workbench: repair malformed JSON before querying or shrinking it.
BROWSER-LOCAL · EXPLICIT RUN
Start with malformed JSON, repair it locally, and optionally validate the canonical value against a submitted schema or validate a separate tool definition or call. Nothing runs when this page or a preset loads.
Use the published bounded JSON Schema subset. Missing values and type conversions are never invented.
Submit exactly {"mode":"openai-call","input":{...}}. This validates the submitted fixture; it never executes a tool.
Nothing has run. Review the input, then repair explicitly.
CANONICAL ARTIFACT
SYNTAX EVIDENCE
OPTIONAL VALIDATION
SEPARATE FIXTURE CHECK
COMPLETE ACCOUNTING
Every artifact comes from the same canonical request and result. Exports are inert until you submit them yourself.
WORKED EXAMPLES
{name:"Ada",items:[1,2,],}The repair list identifies each syntax edit; canonical output sorts object keys without claiming semantic correctness.
Output: {"count":"2"}
Schema: count must be integerThe source value remains a string. Schema diagnostics report the exact path rather than coercing it.
{"mode":"openai-call","input":{"function":{"name":"save","arguments":"{"}}}Tool-call diagnostics are separate from syntax and schema findings, and no submitted tool is executed.
JSON Repair fixes common malformed JSON and records each deterministic change.
It avoids model retry loops while keeping inferred closures visible and review-required.
Fences, leading prose, comments, unquoted keys, single quotes, trailing commas, and explicit opt-in truncated closures.
Optional submitted-schema and tool-call checks publish their own diagnostics without inventing or coercing values.
Repair and validation run locally in your browser only after you click Repair JSON locally.
Inferred closures require explicit opt-in and review. Deterministic syntax repair does not prove semantic correctness.