Skip to main content
devtools24

JSON Schema Generator

Generate JSON Schema from sample JSON data. Automatically detects types, formats (email, date, UUID), and structure.

Entrée0 chars
Sortie
Result appears here

About JSON Schema

  • JSON Schema is a vocabulary for annotating and validating JSON documents
  • Formats detected: date, date-time, email, uri, uuid
  • Numbers are typed as "integer" or "number" based on value
  • Array items are inferred from the first element

JSON Schema - Détails techniques

JSON Schema is a vocabulary for annotating and validating JSON documents. It's used for API validation, configuration validation, and documentation. This tool generates Draft-07 compatible schemas.

Alternative en ligne de commande

# Validate JSON against schema\nnpx ajv validate -s schema.json -d data.json\n\n# Generate schema with quicktype\nnpx quicktype --lang schema data.json

Référence

Voir la spécification officielle