~ / labs/schema

schema.

paste any json — infer a json schema from it. detects common formats (date-time, email, uuid, uri, ipv4), marks required vs optional based on nullability, merges heterogeneous arrays sensibly.

draft
── input json
── inferred schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "name": {
      "type": "string"
    },
    "age": {
      "type": "integer"
    },
    "verified": {
      "type": "boolean"
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "address": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "city",
        "country"
      ]
    },
    "lastLogin": {
      "type": "null"
    }
  },
  "required": [
    "id",
    "email",
    "name",
    "age",
    "verified",
    "created",
    "tags",
    "address"
  ]
}