JSON
Mock JSON Generator
テンプレートに基づいて偽の JSON データを生成 — {{name}} や {{email}} のようなプレースホルダー値、配列は "キー|N" で繰り返し指定。
プレースホルダー: {{uuid}} {{name}} {{firstName}} {{lastName}} {{email}} {{phone}} {{number(1,100)}} {{float(0,1)}} {{boolean}} {{date(2020,2024)}} {{datetime}} {{word}} {{sentence}} {{paragraph}} {{city}} {{country}} {{company}} {{color}} {{index}} · 配列: "キー|N": [テンプレート] — N回繰り返し。
Instead of writing test data by hand, this tool generates realistic fake JSON from a template with placeholders like {{name}}, {{email}}, or {{uuid}}. An array with a given number of items is built with the "key|N" syntax.
How to use it
- Describe the shape you want, dropping placeholders in where real values would go.
- For an array of several identically-shaped items, use "key|N", where N is how many you need.
- Each generation produces fresh random values — run it again to get a different data set from the same template.
Common uses
- Filling a local database or UI mockup with realistic test data without hand-writing fixtures.
- Creating a sample API response for documentation or frontend work before the backend is ready.
- Quickly checking how a component or table looks with a large number of data rows.
Things to keep in mind
Each generation is random by design — save the generated JSON separately if you need to see the exact same result again, rather than relying on regenerating it.
The generated data is realistic in form (an email looks like an email) but has no connection whatsoever to real people or records.
よくある質問
このモックJSON生成ツールは何に使えますか?
{{name}}、{{email}}、{{uuid}}、{{number(1,100)}}のようなプレースホルダーを含むテンプレートから、ダミーのJSONデータを生成できます。テストのフィクスチャやAPIレスポンスのサンプル作成に便利です。
同じ形式の要素を繰り返した配列を作るにはどうすればいいですか?
"キー|N": [テンプレート]という記法を使うと、テンプレートをN回繰り返した配列を生成できます。
生成したデータはサーバー側で作られますか?
いいえ、生成処理はすべてブラウザ内のJavaScriptで行われ、データがサーバーに送信されることはありません。
モックデータには「扱いにくい」極端な値も含まれますか?
生成ツールは通常の値と極端な値を意図的に混ぜます — 長い文字列、空のフィールド、範囲の境界にある数値などです。まさにこうした値こそが、"test123" のような「都合の良い」例では見えないレイアウトやロジックの不具合を最も見つけやすいのです。
同じモックデータのセットをもう一度再現できますか?
毎回の生成は意図的にランダムです — 新しいバリエーションのデータを見られるようにするためです。まったく同じ結果がもう一度必要な場合は、再生成するのではなく、生成したJSONを別途保存しておいてください。