A React component for editing JSON objects based on a JSON schema. This package provides a form-like UI that dynamically generates input fields from a schema definition, allowing users to edit JSON data without writing raw JSON. Version 8.3.0 is the latest stable release, with active development and updates. Key differentiators include support for nested schemas, custom validation, and integration with popular form libraries. It ships TypeScript types and works in modern browsers and Node.js.
npm install react-schema-based-json-editorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example of using ReactSchemaBasedJsonEditor to edit a simple object schema.
Use editorMode={EJSONEditorMode.Tree} or editorMode='tree' for string.Initialize state with an empty object or default values matching schema.
Replace 'options' with 'uiSchema' following the new format.
Ensure schema is correctly defined and passed as an object with type and properties.
Run 'npm install react-schema-based-json-editor react'
Use EJSONEditorMode enum or upgrade to v8+. Or pass as string if v8+ supports it.