JSON Editor is a JavaScript library that generates HTML forms from JSON Schema (versions 3 and 4). Version 0.7.28 is the latest stable release as of this writing, but the project appears to be in maintenance mode with no recent updates. It supports multiple CSS frameworks (Bootstrap, Foundation, jQueryUI) and template engines (Mustache, Underscore, Handlebars, etc.). Unlike newer alternatives like react-jsonschema-form, JSON Editor is dependency-free and works with vanilla JS, making it suitable for legacy projects or where a lightweight, framework-agnostic solution is needed.
npm install json-editorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a JSON Schema-driven form with basic fields, retrieves the current value, and sets up change listener.
Set 'keep_oneof_values: false' to remove unselected options from the output, or check for hidden fields manually.
Manually deduplicate values after retrieving from editor.
Use 'no_additional_properties: true' to disable editing JSON and properties.
Include '<script src="mustache.js"></script>' before loading JSON Editor.
Switch to 'bootstrap3' or another supported theme.
To fully disable reordering, also set 'disable_array_reorder: true' and ensure drag-and-drop is disabled (no built-in option).
Set 'options.collapsed: true' on the schema to default collapsed.
Use `import JSONEditor from 'json-editor'` or `const JSONEditor = require('json-editor').default` if using TypeScript with esModuleInterop.Include a compatible template engine script before json-editor, or set `template: 'default'` to use the built-in simple template.
Use `editor.getValue()` after instantiating with `new JSONEditor(element, options)`.
No dependency data recorded yet.