Turn a model's almost-JSON output into valid, parseable JSON - and check it against your schema
What I fixed
Paste a JSON Schema. Supported keywords: type, properties, required, items, enum, additionalProperties, minimum, maximum, minLength, maxLength, pattern. Validation runs against the repaired JSON above.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Language models are great at almost producing JSON. The last five percent - a trailing comma, a smart quote, a True instead of true, a markdown fence wrapped around the whole thing, an object that got cut off mid-generation - is where your parser throws and your pipeline stalls.
This tool takes that broken output and returns valid JSON. It does not patch the text with fragile regexes; it runs a forgiving recursive-descent parser that reads the malformed input, builds a real value, and serializes it back out. Because the output comes from JSON.stringify of a genuine object, it is always structurally valid.
```json ... ``` block, the single most common failure.{ or [.{ name: "x" } becomes { "name": "x" }.[1, 2, 3,] and {,"a":1}.True/False/None/NaN/Infinity/undefined are coerced to their JSON equivalents.// and /* */ are removed.Each repair shows up in the “What I fixed” list so you know exactly what changed.
Open the schema panel and paste a JSON Schema to check the repaired result. The validator is a deliberately small, dependency-free subset covering the keywords that matter for real tool schemas: type, properties, required, items, enum, additionalProperties, minimum, maximum, minLength, maxLength, and pattern. Errors are reported per JSON path.
Pairs naturally with the JSON Formatter (once it is valid) and JSON Schema to Tool Definition (going the other direction).
$ref, allOf/anyOf/oneOf, format, or conditional schemas. It covers the common flat-and-nested tool-schema shape, not the full Draft 2020-12 spec.For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.