Skip to content

Formatadores e Código

Formatador JSON5

Formatador JSON5 gratuito. Aceita JSON com comentários, vírgulas finais e outra sintaxe flexível, depois gera JSON estrito. Útil para ficheiros de configuração que se desviaram da especificação.

Runs in your browser
JSON5 formatter & validator
lines: 0chars: 0size: 0 B
JSON5 · UTF-8 · 2-space indent

Nota do editor

Understanding · JSON for humans.

Este capítulo aprofundado está disponível apenas em inglês no momento. A ferramenta de conversão acima funciona no seu idioma; o artigo explicativo longo ainda não foi traduzido.

Perguntas frequentes

Quick answers.

What is JSON5?

A superset of JSON that allows comments, trailing commas, unquoted keys and a few other conveniences. It's the format of many config files (tsconfig, devcontainer, babel) and drift-prone hand-edited JSON.

Does it handle single-quoted strings?

This tool handles the most common JSON5 drift — `// comments`, `/* block comments */` and trailing commas. For the full JSON5 spec (unquoted keys, single quotes, hex numbers) paste into a proper JSON5 parser locally.

What does the output look like?

Strict, spec-compliant JSON — 2-space indented. Safe to feed to any JSON.parse or schema validator.

Is it free?

Yes — fully free, in-browser, no signup.

As pessoas também pesquisam por

Ferramentas relacionadas

More in this room.

Ver tudo em Formatadores e Código