Random JSON Generator

Left pane: set row count and toggle columns (name, email, uuid, booleans, dates). Right pane: pretty-printed JSON array with correct types—Generate, then copy into Postman, OpenAPI examples, or unit-test fixtures.

Synthetic JSON arrays for mocks and fixtures

REST list endpoints and frontend tables often expect a JSON array of objects—each key typed as string, number, boolean, or null. Synthetic generators sample from plausible patterns (names, emails, UUIDs) so Postman examples and unit tests look realistic without copying production PII.

After generation, pretty-print with JSON formatter, validate shape with JSON Schema validator, export tables via JSON to CSV or CSV generator with the same column picker. Standalone ids: UUID generator.

Mock data and JSON typing

JSON arrays as API list payloads

  1. A top-level `[...]` wraps zero or more objects; HTTP 200 list responses commonly use this shape.
  2. Each object is an unordered set of keys—column order in pretty-print is cosmetic, not schema order.
  3. Numbers and booleans must stay unquoted in JSON; quoted digits become strings and fail strict type checks.
  4. null represents absent optional fields—distinct from empty string "" or omitted keys.

Synthetic vs production data ethics

  1. Fixtures should avoid real emails, phone numbers, or government IDs—even “random” leaks can collide with real people.
  2. UUID v4 and incrementing id fields identify rows in mocks without referencing live databases.
  3. Regenerating rows changes values—tests should assert schema and types, not fixed literals, unless seeded.
  4. OpenAPI examples marked `example` or `examples` are documentation-only—not executed code.

Field types commonly mocked together

  1. Profile bundles: name + email + active flag mimic directory or CRM list items.
  2. Location bundles: city + country support geo filters without full address validation.
  3. Timestamps as ISO-8601 strings serialize consistently in JSON and parse in most runtimes.
  4. url and company strings stress UI overflow and link rendering more than numeric edge cases.

From mock JSON to CSV and back

  1. Arrays of flat objects map cleanly to CSV—one row per object, headers from union of keys.
  2. Nested objects do not round-trip through CSV without flattening; keep mocks flat for spreadsheet export.
  3. CSV adds no types—re-import may coerce strings; JSON preserves boolean and number literals.
  4. Same column set can be emitted as JSON array or CSV header row for parallel API and ETL tests.

When random JSON helps

OpenAPI and Postman examples

Fill list-endpoint samples before the backend exists, then tighten with schema validation.

Frontend tables and Storybook

Feed datagrid stories with varied row counts; switch to JSON to CSV for spreadsheet QA.

Frequently asked questions

How do I generate random JSON for API testing?
Select columns, set row count, and click Generate. You get a pretty-printed array of objects with typed values.
How to create fake JSON user list data?
Enable name, email, id, uuid, and active columns—typical REST user list keys—then generate up to 500 rows.
JSON generator vs JSON to CSV?
This page creates new mock JSON. JSON to CSV converts JSON or CSV text you already have.
Can I get CSV instead of JSON?
Use CSV generator with the same field toggles and download UTF-8 CSV.
How many records can I generate at once?
Up to 500 rows per click—enough for UI scroll tests while keeping output easy to copy.
Are uuid and email values real people?
No—they are synthetic strings for testing. Do not treat them as verified contact data.
What should I do after generating JSON?
Validate or format with JSON formatter; check contracts with JSON Schema validator.
Why do my tests need typed booleans and numbers?
Strict parsers and TypeScript interfaces reject quoted "true" or "42" strings—mocks should mirror production JSON types.