Reparador JSON
Corrige erros comuns: vírgulas finais, aspas etc.
Broken JSON
Repaired JSON
Recover broken JSON instead of typing fixes by hand
AI tools and APIs don't always produce perfect JSON. Trailing commas, single quotes, comments, unquoted keys, half-truncated objects — every one of those will fail JSON.parse and stop your pipeline. A repair tool reads the broken input character by character and applies the minimum fixes needed to make it valid, preserving your data.
Use the repair tool when you need to
Fix malformed AI model output
Strip Markdown fences, repair single quotes, and close truncated objects so structured output becomes parseable.
Recover a half-broken API response
When a network blip cut a response mid-stream, repair closes open strings, arrays, and objects to salvage what arrived.
Clean up copied JSON from logs or chat
Logs often paste JSON with smart quotes, trailing commas, or extra wrapping — fix it instead of editing line by line.
How to repair JSON quickly
- 1
Paste the broken JSON into the editor.
- 2
Click Repair to apply the minimum fixes for valid syntax.
- 3
Validate the repaired output, then copy or feed it into the next step in your pipeline.
Keep going
Validate after repairing
Confirm the repaired output parses cleanly before feeding it into downstream code.
Repair and schema-validate at once
Combine repair with schema validation for AI model output and tool calls.
Format the result
Pretty-print the repaired JSON to read and review the changes.
Understand parser errors
Learn what each common error message means before deciding to repair.
Common repair workflows
Strip fences and trailing commentary from model output before passing it into a JSON parser.
Close truncated objects and arrays to extract whatever data made it through the wire.
Repair JSON copied from log lines that lost or corrupted some characters in transit.
Ferramentas relacionadas
Perguntas frequentes
A ferramenta corrige colchetes e chaves de fechamento faltando, vírgulas sobrando no final (trailing commas), aspas simples no lugar de aspas duplas, nomes de propriedades sem aspas, vírgulas faltando, comentários (// e /* */) e JSON truncado. Muitas vezes ela consegue reconstruir um JSON válido a partir de uma entrada parcialmente quebrada.
A ferramenta usa um parser que entende erros comuns de JSON. Ela lê a entrada caractere por caractere, identifica problemas estruturais e aplica as correções mínimas necessárias para produzir um JSON válido, preservando ao máximo os seus dados originais.
Em muitos casos, sim. Se o JSON foi cortado no meio (por exemplo, por timeout de rede), a ferramenta pode fechar strings, arrays e objetos abertos para gerar um JSON válido. Parte dos dados truncados, naturalmente, será perdida.
Ela faz mudanças mínimas — apenas o necessário para o JSON ficar válido. Ela preserva valores, chaves e estrutura. As correções aplicadas são listadas para você revisar exatamente o que foi alterado.