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

Common uses

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.

このツールに関する記事: Mock JSON Generator:偽データが何の役に立つか

よくある質問

このモックJSON生成ツールは何に使えますか?

{{name}}、{{email}}、{{uuid}}、{{number(1,100)}}のようなプレースホルダーを含むテンプレートから、ダミーのJSONデータを生成できます。テストのフィクスチャやAPIレスポンスのサンプル作成に便利です。

同じ形式の要素を繰り返した配列を作るにはどうすればいいですか?

"キー|N": [テンプレート]という記法を使うと、テンプレートをN回繰り返した配列を生成できます。

生成したデータはサーバー側で作られますか?

いいえ、生成処理はすべてブラウザ内のJavaScriptで行われ、データがサーバーに送信されることはありません。

モックデータには「扱いにくい」極端な値も含まれますか?

生成ツールは通常の値と極端な値を意図的に混ぜます — 長い文字列、空のフィールド、範囲の境界にある数値などです。まさにこうした値こそが、"test123" のような「都合の良い」例では見えないレイアウトやロジックの不具合を最も見つけやすいのです。

同じモックデータのセットをもう一度再現できますか?

毎回の生成は意図的にランダムです — 新しいバリエーションのデータを見られるようにするためです。まったく同じ結果がもう一度必要な場合は、再生成するのではなく、生成したJSONを別途保存しておいてください。

記事: JSON