Developer tools
How to use JSON Schema Generator from Sample: an example and checklist
Use JSON Schema Generator from Sample when you need a quick way to work through this task. Infer a draft JSON Schema from example values; review it before validation. This guide walks through a small example and the checks to make before you use the result.
How to use the tool
- Open JSON Schema Generator from Sample and start with a small example that contains no sensitive data. This makes it easier to see what changes.
- Follow the tool's own instructions: Infer a draft JSON Schema from example values; review it before validation. JSON parsing does not preserve duplicate object keys; numeric precision follows JavaScript. Review the result against the original input. Use only data you are permitted to process; keep your original file.
- Inspect the result against your original input. Make any corrections, then copy or download it for your project.
Try a small example
Example input or settings
Infer a draft schema from a sample product record.
What to check
Review the result against the original input. Use only data you are permitted to process; keep your original file.
When this is useful
For a real task, replace the sample with your own input and check the output in its final context. Keep a copy of the original if the change is hard to reverse.
Before you rely on the result
Validate the output in your own environment. Formatting or conversion does not prove that data or code is safe or correct.