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 ครั้ง
คำถามที่พบบ่อย
What is a mock data generator useful for?
Quickly building test fixtures or sample API responses without manually inventing values — handy for frontend development, tests, or demos when real data is not yet available.
How do I generate an array with multiple records?
Use the "key|N": [template] syntax — the template inside the array is repeated N times, and each repetition generates fresh random values for the placeholders.
Can placeholders take parameters?
Yes, placeholders like {{number(1,100)}} or {{date(2020,2024)}} accept a range in parentheses — generation happens entirely in your browser via JavaScript, with no server involved.