JSON Mock Data Generator
Generate mock JSON data for testing. Choose from predefined datasets including cities, countries, popular foods, random people, random employees, and top 250 movies. Export in JSON, PHP array, or CSV format.
Why use a JSON generator?
When building and testing web applications, you often need realistic mock data to populate your UI or test your API endpoints. Manually typing out JSON arrays is tedious and error-prone. This JSON generator provides instant access to common datasets like cities, countries, and people, allowing you to quickly generate the exact amount of data you need for your prototypes or unit tests.
Mocking data in Laravel and JavaScript
In Laravel, you would typically use Model Factories and Faker to generate dummy data for your database. However, for frontend-only prototypes or quick API mockups, a simple JSON generator like this is often faster. You can copy the generated JSON and use it directly in your db.json for json-server, or as a static mock in your frontend state management (like Vuex, Pinia, or Redux).