Dadroit JSON Generator
Dadroit JSON Generator is a high-performance tool designed for developers in need of rapid and reliable JSON data generation. Utilizing a custom, function-rich template language. It can efficiently generate 100K objects per second, supporting capabilities such as variants, loops, reusable templates, and various math functions like random, min, max, and count.
This tool can be used in various data-related tasks like validating applications and APIs by providing structured JSON sample data, for example, we built it initially to use it for testing our Dadroit JSON Viewer https://dadroit.com/.
Usage
Quick Start Guide
Save your template as sample.json, for instance, this can be a sample template:
{
"Name": "$FirstName",
"Value": {"X": 1,"Y": 2},
"Books": {"$Random": ["B1", "B2", "B3"]},
"Age": {"$Random": {"$Min": 10,"$Max": 20}}
}Execute using:
JSONGeneratorCLI Sample.json
Your new file should be like this:
{
"Name": "John",
"Value": {"X": 1,"Y": 2},
"Books": "B3",
"Age": 13
}Discover additional samples in the GitHub samples directory.
For a comprehensive guide on how to use the JSON generator, visit https://dadroit.com/blog/json-generator/.
VSCode Extension Available
We’ve recently published a VSCode Extension, a tool crafted to allow developers to utilize the functionalities of the Dadroit JSON Generator directly within their development environment. Simplify your JSON data generation process without leaving your code editor and get additional insights and usage details in our dedicated blog post.
Supported Systems
- Windows
- Mac
- Linux
Third-Party
Build Instructions
- Utilize Lazarus & FPC
- Open the project.
- Execute the build process.
Contributing
We warmly invite you to contribute to the Dadroit JSON Generator. Whether it’s improving the code, adding templates, or enhancing documentation - every bit helps!
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.
Support
Encounter issues or have suggestions? Create an issue.