Dummy JSON Data Generator

See below for available types.

Generated JSON

Using the Dummy JSON Generator

This tool creates an array of fake JSON objects based on a simple schema you define. It is ideal for developers who need placeholder data for testing an application, building a prototype, or mocking an API response.

  1. Define Your Schema: In the schema text area, define the structure of your desired objects. Use the format key:type, with one entry per line.
  2. Set the Record Count: Choose how many fake objects you want to generate in the array.
  3. Copy the JSON: The output updates automatically. Click "Copy" to grab the code.

Available Schema Types

Use the following types in your schema definition to generate different kinds of data:

TypeExampleDescription
idid:idAn auto-incrementing number, starting from 1.
uuidid:uuidA universally unique identifier (e.g., "a1b2c3d4-...").
firstNamefirst_name:firstNameA random first name.
lastNamelast_name:lastNameA random last name.
fullNamename:fullNameA random full name.
emailcontact:emailA fake email address. It will use the 'name' key if it exists in the same object.
citylocation:cityA random city name.
number(min,max)age:number(18,65)A random integer between min and max (inclusive).
boolisActive:boolEither true or false.

Why Use a JSON Data Generator?

  • Rapid Prototyping: When building a user interface, you often need data to display before the backend API is ready. A JSON generator lets you create realistic-looking data to populate your components.
  • Testing: You can generate large sets of data to test the performance of your application, for example, to see how a list or table component handles hundreds of items.
  • API Mocking: When developing a front-end application, you can use the generated JSON as a static file to simulate an API response. This allows front-end and back-end teams to work in parallel.

What is JSON?

JSON (JavaScript Object Notation) is a lightweight, text-based data format that is easy for humans to read and write and easy for machines to parse and generate. It has become the de facto standard for transmitting data between a server and a web application, largely replacing XML. A JSON object consists of key-value pairs, and a JSON array is an ordered list of values, which can include objects.