JSONビューア・フォーマッター・エディター
リアルタイムのインタラクティブツリーでJSONを表示・編集・フォーマット。インライン値編集、キー名変更、ノードの追加/削除、JSONCコメントのサポート、ワンクリックエクスポート — すべてブラウザ内で動作。
Raw JSON from an API response or log file is often a single dense line — completely unreadable without formatting. A good JSON viewer instantly pretty-prints nested objects and arrays, highlights syntax, and collapses or expands nodes so you can navigate to exactly the key you care about without scrolling through thousands of characters.
This tool goes further by letting you edit the JSON in place. Fix a malformed value, rename a key, or delete an unwanted node, and the tree updates live. It's the fastest way to prototype configuration payloads, inspect webhook bodies, verify GraphQL responses, or clean up a JSON fixture before committing it to your test suite — all without spinning up a terminal or installing any extension.
JSONをオンラインでフォーマット・表示する方法
- 1
JSONを貼り付ける
入力パネルに任意のJSON文字列を貼り付けてください。バリデーションが即座に実行され、エラーがある場合は行と文字位置をハイライト表示します。
- 2
ツリーを探索する
フォーマットされたJSONはシンタックスハイライトと折りたたみ可能なツリーとしてレンダリングされます。開閉ボタンをクリックしてネストされたオブジェクトや配列を展開・折りたたみできます。
- 3
コピーまたはミニファイ
整形された出力をコピーするか、ミニファイモードに切り替えてすべての空白を除去したコンパクトな出力を生成できます。
How JSON Parsing and Tree Rendering Works
JSON (JavaScript Object Notation) is defined by RFC 8259 as a strict subset of JavaScript literal syntax, supporting six value types: strings, numbers, booleans, null, arrays, and objects. The parser tokenises the input character by character, validating structural characters (`{`, `}`, `[`, `]`, `,`, `:`) and ensuring strings are properly quoted and escaped. Numbers must match a specific grammar — no leading zeros, no hex literals, no trailing commas.
The interactive tree renderer maps each parsed node to a collapsible DOM element. Depth-first traversal assigns each node a path (e.g. `$.users[2].email`) which powers features like copying a path to the clipboard or filtering by key name. Large arrays are virtualised — only visible rows are rendered — to keep the UI responsive even for JSON files with tens of thousands of entries.
FileCrank JSONビューアーを使う理由
- ✓ エラーの行と文字位置を示すリアルタイムバリデーション。
- ✓ 深くネストされたJSONをナビゲートするための折りたたみ可能なツリービュー。
- ✓ 1つのツールでプリティプリントとミニファイの両モード。
- ✓ 生成されたJSONのライブパネルが修正済み出力をリアルタイムで表示し、すぐにコピーできます。
- ✓ 完全にブラウザ内で動作 — データはサーバーに一切送信されません。
- ✓ 完全にブラウザ内で動作 — データはサーバーに送信されません。
機能と仕様
よくある質問
プリティプリントとミニファイの違いは何ですか?
プリティプリントは改行とインデントを追加してJSONを人間が読みやすくします。ミニファイはすべての空白を削除して最小のJSON文字列を生成します。読み取りやデバッグにはプリティプリントを、ペイロードサイズを削減するにはミニファイを使用してください。
正しく見えるJSONでもバリデーターがエラーを表示するのはなぜですか?
よくある原因:最後の項目の後のトレーリングカンマ(JSONでは不可)、シングルクォートの文字列(JSONはダブルクォートが必要)、コメント(JSONにはコメント構文がありません)、文字列内のエスケープされていない制御文字。
ツリービューでネストされたオブジェクトを折りたたみ・展開できますか?
はい。開閉ボタンをクリックしてノードを折りたたみ・展開できます。折りたたんだノードはアイテム数を表示するので、すべてを展開しなくても内容を把握できます。
ツリービューでJSONの値を直接編集できますか?
はい。任意の値をクリックしてインラインで編集できます。入力しながらツールが型(文字列、数値、真偽値、null)を自動検出します。キーをダブルクリックして名前を変更できます。+ボタンで新しいエントリを追加し、×でノードを削除します。
JSONCとは何ですか?どう使いますか?
JSONCはコメント付きJSONで、//の一行コメントと/* */の複数行コメントが使えます。JSONCをそのまま貼り付けると、ツールが解析前にコメントを自動的に取り除きます。tsconfig.jsonやVS Codeの設定ファイルに便利です。
JSONの入力サイズに制限はありますか?
表示されている入力制限までのJSONを処理します。1MBを超える非常に大きなJSONはパースとレンダリングはできますが、ツリービューのナビゲーションが遅くなる場合があります。ミニファイはサイズに関係なく即座に実行されます。
Browser JSON Viewer vs. jq vs. IDE Extensions
Command-line `jq` is unbeatable for scripted transformations and pipeline processing, but requires memorising its query syntax. IDE extensions add JSON support to your editor but are overkill when you just want to inspect a pasted response. A browser-based viewer requires zero setup, works on any device, and is the fastest option for quick inspection and one-off edits — especially when you are working with a payload you received in a chat message or email.
関連ツール
FileCrank JSONビューアーはシンタックスハイライトと折りたたみ可能なツリービューでJSONをフォーマット、検証、表示します — 完全にブラウザ内で動作します。
Advertisement