Dev
Mock JSON Payload Generator
Webhook endpoints, message queue handlers, and REST API clients all need test payloads — but writing JSON fixtures by hand is slow, and a missing field or malformed timestamp can send you chasing a bug that was never in your code. This generator produces realistic, nested JSON payloads for five common event types with valid UUIDs, ISO 8601 timestamps, and domain-appropriate field names throughout. The Payload Type selector determines the entire structure. User event produces an event_id, event_type (click, pageview, signup, purchase, logout), user_id, session_id, timestamp, and a properties object with page, device, and browser fields — ready for analytics pipeline testing. Order includes order_id, customer_id, status enum, total as a decimal string, currency, and a nested items array with SKU, qty, and price per line item. Sensor reading generates device_id, sensor_type (temperature, humidity, pressure, light, motion), value, unit, timestamp, and a location object with lat and lng. Error response picks from ten HTTP error codes with matching message strings and includes a request_id and timestamp. Notification produces notification_id, type (email, push, sms, in_app), recipient UUID, title, body, read boolean, and sent_at. Set count above 1 to get a JSON array for batch seeding or message queue load tests.
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Select a payload type from the dropdown that matches the API or event shape you need to test.
- Set the count field to the number of payloads you want — use 1 to inspect structure, higher numbers to bulk-generate fixtures.
- Click Generate to produce the JSON output with randomised values, UUIDs, and timestamps.
- Copy the full output and paste it into Postman, curl, your test fixture file, or a mock server body.
- Re-click Generate any time you need a fresh set of randomised values without changing any settings.
Use Cases
- •POST a user-event payload to a new webhook endpoint using curl or Postman
- •Stub an orders API response in MSW while the backend is still under construction
- •Seed a Postgres staging database with 50 randomised sensor readings in one batch
- •Replay structured error-response payloads to verify front-end error-state rendering in Cypress
- •Feed notification payloads into a message queue to load-test parsing throughput
Tips
- →When testing error-handling logic, generate 10+ error-response payloads at once — different status codes and messages will surface edge cases your single fixture won't.
- →Paste a generated payload into JSONSchema.net to auto-derive a JSON Schema, then use that schema to validate real API responses in your test suite.
- →For front-end component testing, generate 5 notification payloads and paste them into a mock service worker or MSW handler to simulate a live feed.
- →Sensor reading payloads work well for testing charting components — generate 20 readings and map the numeric fields to your chart's data array.
- →If your API expects a specific envelope (e.g. wrapped in a 'data' key), generate the inner payload here and manually wrap it — faster than writing the full fixture from scratch.
- →Order payloads include nested line-item arrays, so they're the best choice for stress-testing any parsing logic that recurses into nested structures.
FAQ
how do I use a generated JSON payload to test my webhook endpoint
Copy the output, then run: curl -X POST https://your-endpoint.com/webhook -H 'Content-Type: application/json' -d '<paste payload>'. You can also paste it into the request body in Postman or Insomnia. Make sure your endpoint is listening before you fire the request.
are the UUIDs and timestamps in these payloads actually valid
Yes. UUIDs follow the UUIDv4 format with correct version and variant bits, and timestamps are ISO 8601 UTC strings. Both are randomly generated client-side and have no connection to any real system or record. They pass UUID validation and date parsing in JavaScript, Python, and most other runtimes.
can I generate multiple payloads at once for batch testing
Yes — set the count field above 1 and the output becomes a JSON array of independently randomized payloads. This is handy for seeding a database, batch-testing a parser, or simulating a burst of incoming events in a load test.
which payload types does this generator support
Five types are available: user event (analytics event with properties object), order (line-item array with total and currency), sensor reading (device with lat/lng location and typed value), error response (ten possible HTTP error codes with request_id), and notification (four channel types with read boolean and sent_at). Custom payload shapes are not supported — pick the closest type and edit the copied output.
You might also like
Popular tools from other categories that share themes with this one.
Try these next
More free tools from other corners of the catalog, picked by shared themes.