Schema Detector
Paste any JSON payload and instantly get a MockHero schema with auto-detected field types. Ready to generate realistic test data.
{
"fields": {
"id": {
"type": "uuid"
},
"first_name": {
"type": "first_name"
},
"last_name": {
"type": "last_name"
},
"email": {
"type": "email"
},
"company": {
"type": "company_name"
},
"job_title": {
"type": "job_title"
},
"city": {
"type": "city"
},
"country": {
"type": "country"
},
"phone": {
"type": "phone"
},
"created_at": {
"type": "datetime"
},
"is_active": {
"type": "boolean"
},
"score": {
"type": "rating"
}
}
}Ready to generate data?
Use this schema with the MockHero API to generate thousands of realistic records in seconds.
How Schema Detection Works
The Schema Detector inspects every key-value pair in your JSON and applies a two-pass detection algorithm. First, it matches property names against common conventions (e.g. email, first_name, created_at). If no key-name rule matches, it falls back to value-pattern analysis — checking for UUIDs, ISO dates, URLs, and more. The result is a ready-to-use MockHero schema you can send directly to the API.
Works with arrays too
If you paste a JSON array, the detector uses the first element to infer the schema. This means you can copy an entire API response list and get a schema without any manual editing.
Supported Field Types
Why auto-detect instead of writing schemas by hand?
- Speed. Paste a real response, get a schema in under a second. No need to look up type names.
- Accuracy. The detector maps to the most semantically specific type, so generated data looks realistic.
- Iteration. Change your API, paste the new response, and the schema updates automatically.