🌐
npm
npmjs.com › package › jsoneditor-react
jsoneditor-react - npm
const JsonEditor = importedComponent(() => Promise.all([ import(/* webpackChunkName:'jsoneditor' */'jsoneditor-react'), import(/* webpackChunkName:'jsoneditor' */'brace'), import(/* webpackChunkName:'jsoneditor' */'ajv'), import(/* webpackChunkName:'jsoneditor' */'brace/mode/json'), import(/* webpackChunkName:'jsoneditor' */'brace/theme/github') ]).then(([{ JsonEditor: Editor }, ace, Ajv ]) => { const ajv = new Ajv(); return function EditorHoc(props) { return ( <Editor ace={ace} ajv={ajv} theme="ace/theme/github" {...props} /> ); } }));
      » npm install jsoneditor-react
    
Published   Dec 17, 2021
Version   3.1.2
Author   Ivan Kopeykin
🌐
GitHub
github.com › CarlosNZ › json-edit-react
GitHub - CarlosNZ/json-edit-react: React component for editing/viewing JSON/object data · GitHub
You can see an example of this in the Demo with the "JSON Schema Validation" data set (and the "Custom Nodes" data set). An example onUpdate validation function (using Ajv) could be something like this: import { JsonEditor } from 'json-edit-react' import Ajv from 'ajv' import schema from './my-json-schema.json' // Put these outside React components: const ajv = new Ajv() const validate = ajv.compile(schema) // Etc....
Starred by 616 users
Forked by 37 users
Languages   TypeScript 86.8% | CSS 5.5% | Python 4.1% | JavaScript 3.4% | HTML 0.2%
🌐
GitHub
github.com › vankop › jsoneditor-react
GitHub - vankop/jsoneditor-react: react wrapper implementation for https://github.com/josdejong/jsoneditor
jsoneditor-react using minimalist version of jsoneditor to minimize flat bundle size, so if you want to use Ajv or Ace Editor install them as well
Starred by 277 users
Forked by 107 users
Languages   JavaScript 99.8% | CSS 0.2% | JavaScript 99.8% | CSS 0.2%
🌐
CodeSandbox
codesandbox.io › examples › package › jsoneditor-react
jsoneditor-react examples - CodeSandbox
Use this online jsoneditor-react playground to view and fork jsoneditor-react example apps and templates on CodeSandbox.
🌐
GitHub
github.com › josdejong › jsoneditor › blob › develop › examples › react_advanced_demo › README.md
jsoneditor/examples/react_advanced_demo/README.md at develop · josdejong/jsoneditor
A web-based tool to view, edit, format, and validate JSON - jsoneditor/examples/react_advanced_demo/README.md at develop · josdejong/jsoneditor
Author   josdejong
🌐
npm
npmjs.com › package › json-edit-react
json-edit-react - npm
# Depending on your package manager: npm i json-edit-react # OR yarn add json-edit-react · import { JsonEditor } from 'json-edit-react' // In your React component: return ( <JsonEditor data={ jsonData } setData={ setJsonData } // optional { ...otherProps } /> ); (for end user) It's pretty self explanatory (click the "edit" icon to edit, etc.), but there are a few not-so-obvious ways of interacting with the editor: Double-click a value (or a key) to edit it ...
      » npm install json-edit-react
    
Published   Oct 01, 2025
Version   1.29.0
Author   Carl Smith
🌐
Carlosnz
carlosnz.github.io › json-edit-react
JSON•Edit•React
A highly-configurable React component for editing or viewing JSON/object data
🌐
GitHub
github.com › constantoduol › JSONEditor
GitHub - constantoduol/JSONEditor: A react visual json editor
import {JSONEditor} from 'react-json-editor-viewer'; constructor(){ this.onJsonChange = this.onJsonChange.bind(this); } onJsonChange(key, value, parent, data){ console.log(key, value, parent, data); } <JSONEditor data={{ the: "men", that: "landed", on: "the", moon: "were", maybe: 2, i: "think", probably: ["neil armstrong", "buzz aldrin"], am_i_right: true }} collapsible onChange={this.onJsonChange} view="dual" /> See the source for the Demo App ·
Starred by 103 users
Forked by 18 users
Languages   JavaScript 99.5% | HTML 0.5% | JavaScript 99.5% | HTML 0.5%
🌐
npm
npmjs.com › package › react-json-editor
react-json-editor - npm
A dynamic form component for React using a specification format based on JSON-Schema. The full code for the demo can be found at https://github.com/ismaelga/react-json-editor/blob/master/demos/demo.jsx.
      » npm install react-json-editor
    
Published   May 19, 2017
Version   0.3.0
Author   Ismael Abreu
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 65791243 › convert-class-component-in-react-javascript-to-functional-component-in-react-typ
reactjs - Convert class component in React Javascript to Functional Component in React TypeScript - Stack Overflow
import React, {Component} from 'react'; import JSONEditor from 'jsoneditor'; import 'jsoneditor/dist/jsoneditor.css'; import './JSONEditorDemo.css'; export default class JSONEditorDemo extends Component { componentDidMount () { const options = { mode: 'tree', onChangeJSON: this.props.onChangeJSON }; this.jsoneditor = new JSONEditor(this.container, options); this.jsoneditor.set(this.props.json); } componentWillUnmount () { if (this.jsoneditor) { this.jsoneditor.destroy(); } } componentDidUpdate() { this.jsoneditor.update(this.props.json); } render() { return ( <div className="jsoneditor-react-container" ref={elem => this.container = elem} /> ); } }
🌐
ReactScript
reactscript.com › home › categories › others › visual json editor in react
Visual JSON Editor In React | Reactscript
September 15, 2022 - Live Demo Download Source Code · A React-based visual JSON editor. 1. Install & import. # NPM $ npm i react-json-editor-ui · import * as React from 'react' import * as ReactDOM from 'react-dom' import JsonEditor from 'react-json-editor-ui' import 'react-json-editor-ui/dist/react-json-editor-ui.cjs.development.css' 2.
🌐
GitHub
github.com › Eightyplus › react-json-editor
GitHub - Eightyplus/react-json-editor: JSON editor for React
class MyComponent extends Component { constructor(props) { super(props); this.state = { json: undefined /* setup here or load elsewhere */ } } callback = (changes) => { this.setState({json: changes}); }; render() { return ( <div> <JsonEditor value={this.state.json} propagateChanges={this.callback}/> </div> ); } } It possible to parse and see errorMessage from parsing with the following helper method · import { parse } from 'react-json-edit'; load_callback(text) { const parsed = parse(text); if(parsed.json === undefined) { this.setState({message: parsed.errorText}); } else { this.setState({json: parsed.json, message: undefined}); } } render() { return ( <div> <JsonEditor value={this.state.json} propagateChanges={this.callback}/> <span>{this.state.message}</span> </div> ); }
Starred by 11 users
Forked by 5 users
Languages   JavaScript 98.1% | CSS 1.6% | HTML 0.3% | JavaScript 98.1% | CSS 1.6% | HTML 0.3%
🌐
Bytescrum
blog.bytescrum.com › how-to-use-jsoneditor-in-a-react-app
How to Use JSONEditor in a React App
March 29, 2024 - powerful tool for editing JSON data in a visual interface. In this tutorial, we'll walk through how to integrate JSONEditor into a React app to import JSON data from a file, edit it using the JSONEditor interface, and save the updated JSON data ...
🌐
DhiWise
dhiwise.com › post › mastering-jsoneditor-react-for-efficient-data-manipulation
Mastering JSONEditor React: A Comprehensive Guide
October 25, 2023 - Setting up the Environment for JSONEditor ReactHow to Edit JSON Data in ReactImplementing JSON Editor in ReactDisplaying JSON in ReactJSUsing ACE Editor in ReactLoading JSON Editor IconsHow to Import Brace in JSONEditor ReactImplementing Your Own Import ImportedComponentMinimizing Flat Bundle Size in JSONEditor ReactDebugging JavaScript Object Syntax in JSONEditor ReactAutomatically Updating JSONEditor ReactConclusion: The Power of JSONEditor React in Web Development
🌐
Snyk
snyk.io › advisor › jsoneditor › jsoneditor code examples
Top 5 jsoneditor Code Examples | Snyk
josdejong / jsoneditor / examples / react_advanced_demo / src / JSONEditorReact.js View on Github
🌐
Tim Santeford
timsanteford.com › posts › building-a-custom-json-editor-in-react-with-and-without-react-json-view
Building a Custom JSON Editor in React with and without react-json-view - Tim Santeford
Finally, integrate the custom JsonEditor component into your main application file. ... import React, { useState } from 'react'; import ReactDOM from 'react-dom'; import JsonEditor from './JsonEditor'; const App: React.FC = () => { const [jsonString, setJsonString] = useState(JSON.stringify({ exampleKey: "exampleValue" }, null, 2)); const [jsonObject, setJsonObject] = useState({ exampleKey: "exampleValue" }); const handleJsonChange = (newJsonString: string) => { setJsonString(newJsonString); setJsonObject(JSON.parse(newJsonString)); }; return ( <div> <h1>Custom JSON Editor Example</h1> <JsonEditor jsonString={jsonString} onChange={handleJsonChange} /> <h2>Parsed JSON Object</h2> <pre>{JSON.stringify(jsonObject, null, 2)}</pre> </div> ); }; ReactDOM.render(<App />, document.getElementById('root'));
🌐
GitHub
github.com › vankop › jsoneditor-react › blob › master › README.md
jsoneditor-react/README.md at master · vankop/jsoneditor-react
```jsoneditor-react``` using minimalist version of ```jsoneditor``` to minimize flat bundle size, so if you want to use [Ajv](https://github.com/epoberezkin/ajv) or [Ace Editor](https://github.com/thlorenz/brace) install them as well
Author   vankop
🌐
Replit Docs
docs.replit.com › extensions › examples › json-editor
Replit Docs
In this tutorial, we will create a JSON editor Extension with React and the react-json-view package. Our application will display a JSON file’s content and allow users to edit, add or delete properties directly from the editor.
🌐
CodeSandbox
codesandbox.io › s › github › SaravananRajaraman › React-JSON-Editor-Demo
react-json-editor - CodeSandbox
February 26, 2019 - react-json-editor using react, react-dom, react-json-editor-ajrm, react-scripts
Published   Feb 26, 2019