DEV Community

Jean Carlo - Dev
Jean Carlo - Dev

Posted on

Generate Realistic Mock JSON Data for API Testing (No Backend, No Setup)

When you're building or testing an API, you hit the same wall every
time:

"I just need realistic JSON data... fast."

You don't want to: - create seed scripts - install faker libraries -
spin up a backend - or manually type fake users, products, or orders

You just want JSON.

ߑ https://quickeasy.tools/en/tools/json-mock-generator


The problem with most mock data approaches

Typical flow:

npm install faker
create script
run script
adjust fields
run again
Enter fullscreen mode Exit fullscreen mode

Or worse... copy/paste from old projects.

This breaks your flow when you're: - prototyping a frontend - testing
API contracts - mocking responses - creating Postman collections -
writing automated tests

You don't need a project.\
You need data.


What this JSON Mock Generator does

You define fields like:

  • id (UUID)
  • full_name
  • username
  • email
  • phone
  • address
  • company
  • job_title
  • active (boolean)

And instantly get:

{
  "id": "e24e0d8f-a5e-4c13-8ec5-0af008884f",
  "full_name": "Kevin Wilson",
  "username": "kevin.wilson",
  "email": "kevin.wilson@email.com",
  "phone": "+1 (555) 709-795",
  "address": {
    "street": "497 Maple Dr",
    "city": "Dallas",
    "zip": "52278"
  },
  "company": "Lorem ipsum dolor sit amet",
  "job_title": "DevOps",
  "active": false
}
Enter fullscreen mode Exit fullscreen mode

No setup. No login. No libraries.


Perfect for

  • Frontend developers mocking API responses
  • Backend developers testing serializers
  • QA creating test payloads
  • Postman / Insomnia testing
  • Writing unit tests
  • Prototyping dashboards
  • Generating seed-like data instantly

Custom schemas (this is the killer feature)

You're not stuck with "users".

You can build any structure:

  • products
  • orders
  • invoices
  • customers
  • logs
  • nested objects

Add fields. Choose types. Generate.


Why browser-based is better

Because you don't leave your flow.

No: - npm - docker - scripts - dependencies

Just open → configure → copy JSON.


Example use cases

Mock API response for frontend

fetch('/api/users')
  .then(res => res.json())
Enter fullscreen mode Exit fullscreen mode

Paste generated JSON into your mock server.


Unit tests

const fakeUsers = require('./mock.json')
Enter fullscreen mode Exit fullscreen mode

Done.


Postman collection

Paste into response body simulation.


Types supported

  • UUID
  • Full name
  • Username
  • Email
  • Phone
  • Address
  • Company
  • Words / Lorem
  • Enum
  • Boolean

You can mix everything into your own schema.


Try it here

ߑ https://quickeasy.tools/en/tools/json-mock-generator

Takes 5 seconds to generate your first dataset.


Why I made this

I was tired of wasting time generating fake data every time I needed to
test something.

So this became my internal tool.\
Now it's public.

If you build APIs, frontends, or tests --- this saves real time.


If you have suggestions for new field types, I'm all ears.

Top comments (0)