JSON generator

 
Your JSON template


JSON generated



Options for exporting generated JSON files





This tool allows you to generate random JSON files from a template.

You can generate multiple JSON files at the same time (exported to a single ZIP file).

Short user guide: Fill in the editor "Your JSON template" and click on the "Generate" button. The "JSON generated" editor will contain the result.
The editor contains only the first JSON file generated. You can dowload the other JSON files below the editor. You can also download a ZIP file containing all the generated JSON files.

You can see the user guide to help you to use this JSON Generator Online.

User guide

This tool allows to generate JSON data, and export the generated JSON files.

Type in the editor "Your JSON template" your template. On the right side of the page, you have an "Available tags" section which shows you the available tags that you can use.

You can also use tag in a property name. The tag must be in a string, enclosed in double curly brackets. Example:

{
	"{{firstname()}}": {
			"age": random(18, 100)
	}
}
			

Below the editors, you can indicate the number of json files that you want to generate.

Click on the "generate" button to generate your json data.
The editor "JSON generated" only contains the first JSON file. The buttons "copy to clipboard" and "download" allows you to retrieve the first JSON file.
All the generated json files are available below the editors.


Why generate JSON files ?

Sometimes it is necessary to have JSON data in order to make tests.

This dataset generator allows you to meet this need, you can generate JSON files with a few clicks.

This tool is currently in beta. Do not hesitate to make a comment in order to indicate the features which seem useful to you!


You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page).

Comments




atom-2020-08-03 18:45
Can you put an option where i can download all the Json data all in a single file instead of multiple sindividual files


Cyril(Admin)-2020-08-03 21:43
I'm not sure I understand. To do this, you can wrap your json in an array:
[repeat( 100 , yourjsonhere )]

The result will then be in a single file.


satya-2020-10-23 00:19
I am trying to generate 10000 files. Single file is not getting downloaded with the .zip link or the downloadlink. Can you pleae check and update me once?


Cyril (Admin)-2020-10-23 13:52
Hello,
I reproduce! I am trying to correct this next week.


Cyril (admin)-2020-10-23 22:19
Explanations: the zip is not ready, you just have to wait!
I added a message to indicate the number of files that remain to integrate in the archive.


Marcus-2020-11-13 20:21
Is there any way to use the returned str of your functions as a key value?

something like

firstname(): {
"age": 30,
"single": randomBool()
}


Cyril (Admin)-2020-11-15 11:24
Hi, it is not possible yet. But I'll see to add this feature.


Cyril (Admin)-2020-11-27 21:41
this feature has been added :)
You can read the User guide for implementation.