Skip to content

フォーマッター&コード

JSON5整形

無料のJSON5整形ツール。コメント、末尾のコンマ、その他の緩い構文を含むJSONを受け入れ、厳密なJSONを出力します。仕様から外れた設定ファイルに役立ちます。

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

編集者注

Understanding · JSON for humans.

この詳細な解説章は現在、英語版のみで提供されています。上の変換ツールはあなたの言語で動作しますが、長文の解説記事はまだ翻訳されていません。

よくある質問

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.

他の人はこちらも検索しています

関連ツール

More in this room.

すべて表示 フォーマッター&コード