JSON
Mock JSON Generator
สร้างข้อมูล JSON จำลองจากเทมเพลต — ค่าตัวยึดตำแหน่งเช่น {{name}} หรือ {{email}} และอาร์เรย์จะทำซ้ำผ่าน "คีย์|N"
ตัวยึดตำแหน่ง: {{uuid}} {{name}} {{firstName}} {{lastName}} {{email}} {{phone}} {{number(1,100)}} {{float(0,1)}} {{boolean}} {{date(2020,2024)}} {{datetime}} {{word}} {{sentence}} {{paragraph}} {{city}} {{country}} {{company}} {{color}} {{index}} · อาร์เรย์: "คีย์|N": [เทมเพลต] — ทำซ้ำ N ครั้ง
Instead of writing test data by hand, this tool generates realistic fake JSON from a template with placeholders like {{name}}, {{email}}, or {{uuid}}. An array with a given number of items is built with the "key|N" syntax.
How to use it
- Describe the shape you want, dropping placeholders in where real values would go.
- For an array of several identically-shaped items, use "key|N", where N is how many you need.
- Each generation produces fresh random values — run it again to get a different data set from the same template.
Common uses
- Filling a local database or UI mockup with realistic test data without hand-writing fixtures.
- Creating a sample API response for documentation or frontend work before the backend is ready.
- Quickly checking how a component or table looks with a large number of data rows.
Things to keep in mind
Each generation is random by design — save the generated JSON separately if you need to see the exact same result again, rather than relying on regenerating it.
The generated data is realistic in form (an email looks like an email) but has no connection whatsoever to real people or records.
บทความเกี่ยวกับเครื่องมือนี้: Mock JSON Generator: ข้อมูลปลอมมีประโยชน์อย่างไร
คำถามที่พบบ่อย
เครื่องมือนี้ตัดสินใจอย่างไรว่าจะสร้างค่าจำลองแบบไหน?
มันสร้างค่าตามประเภทฟิลด์และรูปแบบที่คุณกำหนดไว้ใน schema หรือ template เช่น ชื่อ อีเมล ตัวเลขในช่วงที่กำหนด หรือวันที่ โดยไม่พึ่งพาข้อมูลจริงใด ๆ
ฉันจะได้ข้อมูลจำลองแบบเดิมทุกครั้งที่สร้างหรือไม่?
หากเครื่องมือมีตัวเลือก seed การใช้ค่า seed เดียวกันจะสร้างผลลัพธ์เหมือนเดิมทุกครั้งที่รัน มิฉะนั้นค่าต่าง ๆ จะถูกสุ่มใหม่ทุกครั้ง
ข้อมูลนี้ถูกส่งไปยังเซิร์ฟเวอร์หรือไม่?
ไม่ ข้อมูลจำลองทั้งหมดถูกสร้างในเบราว์เซอร์ของคุณด้วย JavaScript ไม่มีการอัปโหลดข้อมูลใดไปที่ใดเลย
ข้อมูลจำลองรวมค่าขอบเขต "ที่ไม่สะดวก" ด้วยหรือไม่?
ตัวสร้างข้อมูลจะสลับค่าปกติกับค่าขอบเขตโดยตั้งใจ — สตริงยาว ฟิลด์ว่าง ตัวเลขที่ขอบของช่วง ค่าเหล่านี้แหละที่มักเผยข้อผิดพลาดของเลย์เอาต์หรือตรรกะที่มองไม่เห็นในตัวอย่าง "สะดวก" อย่าง "test123"
สามารถสร้างข้อมูลจำลองชุดเดิมซ้ำได้หรือไม่?
การสร้างแต่ละครั้งเป็นแบบสุ่มโดยตั้งใจ — เพื่อให้เห็นความหลากหลายของข้อมูลใหม่ ๆ หากต้องการผลลัพธ์เดิมอีกครั้ง ให้บันทึก JSON ที่สร้างไว้แยกต่างหากแทนการสร้างซ้ำ