material-jsoneditor-umd

Simple JSON Editor component built for use in Material UI projects


License
MIT
Install
npm install material-jsoneditor-umd@2.0.4

Documentation

JSON Editor for Material UI 5.4

A simple editor library for visually editing JSON objects built using Material UI.

How to use

  1. Add as a dependency
npm i material-jsoneditor
  1. Import the component into your project
import { Editor } from 'material-jsoneditor';
  1. 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.