How to use the jsoneditor/dist/jsoneditor-minimalist function in jsoneditor

To help you get started, we’ve selected a few jsoneditor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vankop / jsoneditor-react / src / Editor.jsx View on Github external
createEditor({ value, ...rest }) {
        if (this.jsonEditor) {
            this.jsonEditor.destroy();
        }

        this.jsonEditor = new JSONEditor(this.htmlElementRef, {
            onChange: this.handleChange,
            ...rest
        });

        this.jsonEditor.set(value);
    }

jsoneditor

A web-based tool to view, edit, format, and validate JSON

Apache-2.0
Latest version published 4 days ago

Package Health Score

85 / 100
Full package analysis

Similar packages