JSON Editor reads a JSON Schema and builds an HTML form in the browser, with validation, themes, and optional widget integrations.
Overview
JSON Editor is a browser library that turns a JSON Schema into an interactive HTML form. It supports draft version 3 and 4 schemas and can skin output with several CSS frameworks such as Bootstrap, Spectre, and Tailwind.
The project is in maintenance mode; active development has moved to Jedison, while community pull requests and critical fixes continue. Install via npm as @json-editor/json-editor or load builds from a CDN.
The API lets you initialize with options for ajax $ref loading, themes, icons, validation timing, array and object controls, templates, and hyper-schema links. You can get and set values, validate, listen for change events, enable or disable editing, and destroy the rendered form.
Optional integrations include template engines, Select2 and Selectize for pickers, and icon packs. It has no hard dependencies beyond a modern browser tested in Chrome and Firefox.
Key features
- HTML forms from JSON Schema
- Draft 3 and 4 schema support
- Bootstrap, Spectre, Tailwind themes
- Built-in validation and error display
- Array and object editor controls
- External and local $ref resolution
- Change, add, and switch events
- Optional Select2 and Selectize widgets
Use cases
- Admin UIs for JSON configuration
- Schema-backed survey or intake forms
- Editable JSON with inline validation
- Embedded editors in documentation sites