JSON
Mock JSON Generator
Generazione di dati JSON fittizi in base a un modello: valori segnaposto come {{name}} o {{email}}, e gli array si ripetono tramite "chiave|N".
Segnaposto: {{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}} · array: "chiave|N": [modello] — ripeti N volte.
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.
Articolo su questo strumento: Mock JSON Generator: a cosa servono i dati finti
Domande frequenti
A cosa serve questo generatore di dati JSON finti?
Genera dati JSON fittizi a partire da un modello con segnaposto come {{name}}, {{email}}, {{uuid}} o {{number(1,100)}}, utile per creare fixture di test o esempi di risposte API.
Come posso generare array con elementi ripetuti?
Usando la sintassi "chiave|N": [modello], che ripete il modello N volte all'interno dell'array.
I dati generati vengono creati su un server?
No, la generazione avviene interamente nel browser tramite JavaScript, senza alcun invio di dati a un server.
I dati mock includono valori limite "scomodi"?
Il generatore alterna volutamente valori normali a valori limite — stringhe lunghe, campi vuoti, numeri al limite dell'intervallo. Sono proprio questi valori a rivelare più spesso errori di interfaccia o di logica, invisibili con esempi "comodi" come "test123".
Si può riprodurre lo stesso set di dati mock più volte?
Ogni generazione è casuale per progettazione — per mostrare nuove variazioni dei dati. Se serve esattamente lo stesso risultato una seconda volta, salva a parte il JSON generato invece di rigenerarlo.