Generate realistic mock data for your API testing and development needs.
- Dynamic fields to simulate JSON
- Dynamic fields with nested objects
- Support array object using multiple
- Demonstration Template
await fetch("http://localhost:3000/api/mock", {
method: "POST",
body: JSON.stringify({
count: 1,
data: {
firstName: "person.firstName",
lastName: "person.lastName",
},
}),
});
count = 1
{
"firstName": "John",
"lastName": "Doe"
}
count > 1
[
{
"firstName": "John",
"lastName": "Doe"
},
{
"firstName": "Eleazar",
"lastName": "Shields"
}
]