JSON Editor for Material UI 5.4
A simple editor library for visually editing JSON objects built using Material UI.
How to use
- Add as a dependency
npm i material-jsoneditor
- Import the component into your project
import { Editor } from 'material-jsoneditor';
- Add the component to your project
const myComponent = () => {
const [myObj, setObj] = useState({});
return <Editor value={myObj} onChange={setObj} />;
};
Demo
Visit https://andrewlowndes.github.io/material-jsoneditor/dist/ to use the pre-built editor online. Copy your JSON into the right panel and edit on the left.
Roadmap
- Change types at any depth (number, boolean, string, array, object and null)
- UI Editors for values of all types
- Triggers for all JSON object changes
- Designed for mobile first
- Breadcrumb dropdowns for quick property navigation
- Drag and drop array editing
- Tabular view for arrays of objects
- Easier duplication / mass deletion
- Inline editing for objects / array primitives
- Extra UI Editors for Date / Time / DateTime / Colour picker
Development
Checkout the repo, install dependencies via npm i
and start the development server via npm start
.