This project allows you to generate a large amount of dummy data based on your customizable JSON data. It's particularly useful when you need to test APIs, responses, or any other functionality that requires a significant amount of data.
Follow these steps to use this project:
- Fork and clone this repository to your local machine.
- Navigate to the cloned directory.
- Put your customized JSON data inside the
sampleData.json
file. - To change the value of a particular key, you can update it from
modifyJson.py
file - To change the amount of generate data you can update it from
amountOfData.py
file - Open the terminal in the project directory.
- Run the Python scripts in:
python writeJsonToFile.py
- Check the
generatedDummyData.json
file in the project directory for your dummy data.
Let's assume you have a sample JSON data with the following content:
{
"id": "1234567890",
"user_name": "John Doe",
"email": "[email protected]",
"product_name": "iPhone 12",
"price": 999.99,
"quantity": 1
}
and you want to just change the value of product_name
, price
and quantity
to iPhone 13
, 1000.00
and 2
respectively. You can do this using the modifyJson.py
script in the project directory.
This updated README provides clear instructions on how to use the project and explains the objective of the project. It also includes an example to help users understand how to use their own data.