JSON 생성기
커스텀 키와 구조로 랜덤 JSON 데이터를 생성합니다
정보 입력
계산 결과
JSON Generator creates random JSON data based on your specified key names and number of items. This is useful for testing APIs, prototyping, and filling mock databases.
The generator intelligently detects key types from their names (e.g., keys containing "age" will generate numbers, "email" will generate email addresses) and creates realistic sample data.
용어 설명
- JSON
- JavaScript Object Notation의 약자로, 키와 값의 쌍으로 데이터를 표현하는 가벼운 텍스트 기반 데이터 형식입니다. API 통신과 설정 파일에 널리 쓰입니다.
- 키-값 쌍(Key-Value Pair)
- JSON에서 데이터를 표현하는 기본 단위입니다. "name": "John"처럼 고유한 키에 해당하는 값을 묶어 데이터의 의미를 정의합니다.
- 1
Choose your data types and fields
Define the keys you want, such as name, age, and email. The generator detects each field's type from its name.
- 2
Set the number of objects
Choose how many records to generate so you get enough sample data for your tests or prototype.
- 3
Generate
Press the generate button to create a valid JSON array filled with realistic random values.
- 4
Copy your result
Copy the output directly or download it as a .json file to use in your project.
Example 1 — User objects
Generating 3 user records with the fields name, age, and email produces an array of three distinct objects, each with a random name, a random integer age, and a unique email address.
[
{ "name": "Alice", "age": 29, "email": "alice@example.com" },
{ "name": "Bob", "age": 34, "email": "bob@example.com" },
{ "name": "Carol", "age": 25, "email": "carol@example.com" }
]Example 2 — Nested object
Defining a field like address that itself contains city and zip generates a nested object inside each record, mirroring more complex real-world data structures.
{
"name": "Dave",
"address": {
"city": "Seoul",
"zip": "04524"
}
}How it works:
- Key Detection: The generator analyzes each key name to determine the appropriate data type and format.
- Data Generation: For each item, random values are generated based on the detected key type.
- Output: Results are formatted as a valid JSON array with proper indentation.
{ "name": "John", "age": 28, "email": "user@example.com" }
Tips:
- Use descriptive key names so the generator can infer the right data type.
- Keep the number of items reasonable for testing purposes.
- You can copy the output directly or download it as a .json file.
- Use this data for API testing, database seeding, or UI prototyping.
QWhat does a JSON generator do?
A JSON generator creates realistic random JSON data based on the field names and structure you define. Instead of typing sample records by hand, you specify keys like name, age, or email and the tool produces multiple objects with plausible random values ready for testing or prototyping.
QCan I create custom schemas or field types?
The generator infers data types from key names—keys containing 'age' produce numbers, 'email' produces addresses, 'name' produces person names, and so on. You can combine any number of fields and control the number of objects to shape a custom schema that fits your data model.
QIs this useful for generating sample data during development?
Yes. It is ideal for filling mock databases, seeding test environments, prototyping API responses, and populating UI components. Generating realistic sample data this way saves time compared to hand-writing fixtures and covers a wider range of values.
QIs the generated output valid JSON?
Yes. The output is always formatted as a valid JSON array with properly quoted keys, correct value types, and standard indentation. It can be parsed directly by JSON.parse or any other JSON parser without modification.
QHow does type randomization work?
Each field is assigned a type based on its name, then a random value is generated for that type on every record. For example, an 'age' key yields a different integer each time and an 'email' key yields a different address, so every generated object varies while staying realistic.