Random JSON

按条数与字段数生成随机 JSON 数组。

What Is the Random JSON Generator?

The random JSON generator produces structured random JSON arrays online based on the number of records and fields you specify. Each record includes an auto-incrementing id plus random fields, with randomly generated field names and values whose types cover integers, decimals, booleans, null, and strings, output as well-indented, valid JSON.

Key Features

  • Custom record count (1 to 200) and field count (1 to 30)
  • Auto-incrementing id field in every record
  • Random field names and values of integer, decimal, boolean, null, or string type
  • Output is a valid JSON array with 2-space indentation
  • One-click copy or clear and regenerate

Use Cases / Notes

Great for generating mock data for API integration testing, front-end rendering, or debugging JSON parsers. Every click produces a different random result, and generation happens entirely in your browser.

How to Use

  1. Enter the number of records and fields (leave blank for defaults)
  2. Click Generate to get the formatted JSON array
  3. Click Copy to use the result for mock data or testing