Example project showcasing how to use emerald-json-editor-react npm package.
Install:
npm install
To start in browser, usually on port 3000:
npm start
- JsonForm component that imports the JsonEditorWrapper from emerald-json-editor-react. Takes schema, data, setData, and importFile as props.
- schema.json. This schema is what is used to populate the json editor. In this example it uses a string, number, boolean and url field.
- importFile.js. This is an example of a file upload function. To make it work you need to add your own url to this function, and include tokens if necessary.