Formateurs & Code
Formateur JSON5
Formateur JSON5 gratuit. Accepte les JSON avec commentaires, virgules finales et autre syntaxe relâchée, puis produit un JSON strict. Utile pour les fichiers de configuration s'étant éloignés de la spécification.
Note de la rédaction
Understanding · JSON for humans.
Ce chapitre approfondi n'est actuellement disponible qu'en anglais. L'outil de conversion ci-dessus fonctionne dans votre langue ; le long article explicatif n'a pas encore été traduit.
Questions fréquentes
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.
Les internautes recherchent aussi
Outils similaires
More in this room.
- Formateur et validateur JSONEmbellissez, minifiez et validez le JSON — gratuit, sans inscription.
- Formateur SQLEmbellissez et indentez les requêtes SQL illisibles.
- Formateur et validateur XMLEmbellissez, minifiez et validez XML — instantanément.
- Formateur HTMLEmbellissez et minifiez le HTML — valeurs par défaut Prettier.
- Formateur CSSEmbellissez et minifiez les feuilles de style CSS.
- Formateur JavaScript / TypeScriptJS et TS formatés par Prettier, dans le navigateur.