About json mock generator
Generate realistic mock JSON from a JSON Schema, respecting types, enums, formats and limits. It is useful for front-end work before the API exists.
Tips
- Add formats such as email, date-time and uuid to get sensible values.
- Use minimum and maximum to keep numbers realistic.
- Generate several items to test lists and paging.
Fake on purpose
The values are randomly invented for testing. Email addresses use reserved example domains and phone numbers and addresses do not belong to real people, so they are safe to use in demos and test databases. Do not use them to deceive anyone.
A worked example
A schema for a product with an id, a name, a price between 100 and 5,000 and a list of tags produces objects with plausible values within those limits. Generate ten, feed them into your front end, and test lists, empty states and long names without waiting for the API.
Tips
- Add enum values so statuses look real.
- Use formats such as date-time and email.
- Replace mock data with real responses as soon as the API is ready.
