Decode Nested JSON Online Free

JSON Schema Generator

No JSON data to display

Related Tools

How It Works

See how NextJSON can generate a JSON Schema from a JSON object.

Convert JSON to JSON Schema

Generate a JSON Schema from a JSON string, with schema version of <draft 2020-12>

Input
{
  "message": "Welcome to your daily dose of happiness!",
  "mood": "fantastic",
  "dailyAffirmations": [
    "You are capable of amazing things",
    "Today is full of possibilities",
    "Your smile brightens someone's day"
  ]
}
Output
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    },
    "mood": {
      "type": "string"
    },
    "dailyAffirmations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "message",
    "mood",
    "dailyAffirmations"
  ]
}