Przejdź do treści
DOOLS

Generator schematów JSON

Wklej przykładowy kod JSON i automatycznie wyprowadź schemat JSON z typami, wymaganymi polami i strukturą.

Przykładowy JSON

Wersja robocza
Tab dodaje wcięcie, Shift+Tab je usuwa. Naciśnij Escape, a potem Tab, aby opuścić edytor.
Linie: 16Postacie: 271JSON

Wygenerowany schemat

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "age": {
      "type": "integer"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "isActive": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "address": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        }
      },
      "required": [
        "street",
        "city",
        "zip"
      ]
    }
  },
  "required": [
    "name",
    "age",
    "email",
    "isActive",
    "createdAt",
    "tags",
    "address"
  ]
}
Linie: 57Postacie: 923