JSON Schema 生成
JSON サンプルから型、オブジェクト、配列、必須項目を推論して JSON Schema を生成します。
入力
結果
使い方
Generating a schema
Paste a representative JSON document and press Generate. The tool infers a type for every value, merges the items of arrays and marks each property present in the sample as required.
- Paste a JSON sample.
- Press Generate.
- Adjust required fields and descriptions in the result.
よくある質問
Which schema draft is produced?
The output declares the 2020-12 dialect, which is compatible with most modern validators.
How are arrays with mixed types handled?
The items schema becomes an anyOf list covering every observed type.
関連ツール
JSON バリデーター
JSON が有効かどうかを検証し、構文問題の明確な説明を表示します。
JSON → TypeScript
任意型とユニオン型に対応した TypeScript インターフェースを JSON サンプルから生成します。
JSON フォーマッター
設定可能なインデント、エラー強調、ワンクリックコピーで JSON を整形・検証します。
JSON ミニファイアー
不要なスペースと改行をすべて削除して最小の JSON ペイロードを生成します。
JSON ビューアー
整形されたクリーンな表示で JSON を読み、折りたたみツリーとして閲覧できます。
JSON ツリービューアー
JSON を配列の長さや値の型付きで、操作可能な折りたたみツリーに変換します。