🌐
npm
npmjs.com › package › jsoneditor-react
jsoneditor-react - npm
18 Versions · react wrapper implementation for josdejong/jsoneditor · npm install --save jsoneditor jsoneditor-react · 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 ·
      » npm install jsoneditor-react
    
Published   Dec 17, 2021
Version   3.1.2
Author   Ivan Kopeykin
🌐
Socket
socket.dev › npm › package › jsoneditor-react18
jsoneditor-react18 - npm Package Security Analysis - Socket
const JsonEditor = importedComponent(() => Promise.all([ import(/* webpackChunkName:'jsoneditor' */'jsoneditor-react18'), 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
npmjs.com › package › react18-json-view
react18-json-view - npm
JSON viewer for react18. Latest version: 0.2.9, last published: a year ago. Start using react18-json-view in your project by running `npm i react18-json-view`. There are 51 other projects in the npm registry using react18-json-view.
      » npm install react18-json-view
    
Published   Feb 19, 2025
Version   0.2.9
Author   Suni
🌐
GitHub
github.com › sreenaths › jsoneditor-react18
GitHub - sreenaths/jsoneditor-react18: React wrapper implementation for https://github.com/josdejong/jsoneditor
const JsonEditor = importedComponent(() => Promise.all([ import(/* webpackChunkName:'jsoneditor' */'jsoneditor-react18'), 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} /> ); } }));
Author   sreenaths
🌐
npm
npmjs.com › package › react-json-editor-ajrm
react-json-editor-ajrm - npm
A stylish, editor-like, modular, react component for viewing, editing, and debugging javascript object syntax!. Latest version: 2.5.14, last published: 3 years ago. Start using react-json-editor-ajrm in your project by running `npm i ...
      » npm install react-json-editor-ajrm
    
Published   Jan 29, 2023
Version   2.5.14
Author   andrew.redican.mejia@gmail.com
🌐
Replit Docs
docs.replit.com › extensions › examples › json-editor
Create a JSON editor
Our application will display a JSON file’s content and allow users to edit, add or delete properties directly from the editor. When a user finishes editing the JSON, the file will automatically update with the changes. This tutorial assumes that you have a basic knowledge and understanding of web development and React. Fork the Replit React Extension Template. Install the react-json-view package with npm install --force react-json-view. The package uses React 17 as a peer dependency but works fine with React 18 as well.
🌐
CodeSandbox
codesandbox.io › examples › package › jsoneditor-react18
jsoneditor-react18 examples - CodeSandbox
Use this online jsoneditor-react18 playground to view and fork jsoneditor-react18 example apps and templates on CodeSandbox.
🌐
GitHub
github.com › Eightyplus › react-json-editor
GitHub - Eightyplus/react-json-editor: JSON editor for React
JSON editor for React. Contribute to Eightyplus/react-json-editor development by creating an account on GitHub.
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%
🌐
React Split
uiwjs.github.io › react-json-view
react-json-view
A React component for displaying and editing javascript arrays and JSON objects.
Find elsewhere
🌐
CodeSandbox
codesandbox.io › examples › package › jsoneditor-react
jsoneditor-react examples - CodeSandbox
editor json · amanjotsinghdhunna · seveibar/react-watertable · application-viewer · kryaksy · application-viewer · IlyaGershman/funFsm-reactuseMachine hook example · node-editor · rn-config-tyler-lib[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/applerdotxyz/rn-config-tyler) rn-composable ·
🌐
GitHub
github.com › CarlosNZ › json-edit-react
GitHub - CarlosNZ/json-edit-react: React component for editing/viewing JSON/object data · GitHub
Pass a component to offer a custom text/code editor when editing full JSON object as text.
Starred by 616 users
Forked by 37 users
Languages   TypeScript 86.8% | CSS 5.5% | Python 4.1% | JavaScript 3.4% | HTML 0.2%
🌐
Carlosnz
carlosnz.github.io › json-edit-react
JSON•Edit•React
A highly-configurable React component for editing or viewing JSON/object data
🌐
npms
npms.io › search
react-json-editor-viewer
npms was built to empower the javascript community by providing a better and open sourced search for node modules.
🌐
GitHub
github.com › shridhar-tl › react-json-editor
GitHub - shridhar-tl/react-json-editor: Contains source code for the JSON Editor package available in NPM
This package contains a JSON Editor component which can be used to edit any JSON compatible JavaScript object from within the browser. Currently this implementation is available only for react projects.
Author   shridhar-tl
🌐
npm
npmjs.com › package › json-edit-react
json-edit-react - npm
import { JsonEditor } from ... 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
🌐
DhiWise
dhiwise.com › post › mastering-jsoneditor-react-for-efficient-data-manipulation
Mastering JSONEditor React: A Comprehensive Guide
October 25, 2023 - Implementing a JSON editor in React involves creating a React component that wraps the JSONEditor library. This component should handle the lifecycle of the JSONEditor instance and provide a way for parent components to interact with the editor.
🌐
DhiWise
dhiwise.com › post › mastering-data-visualization-with-react-json-viewer-components
Best Practices for Implementing a React JSON Viewer
September 5, 2024 - To enable edit mode in React JSON Viewer, you can set the onEdit prop to a callback function that handles json data. This will turn the viewer into an interactive editor, allowing users to change values, add new key-value pairs, or delete existing ...
Top answer
1 of 3
1

You can use some JSON editor like react-ace

Put your json file in assets, then import it to your component and follow the guide on the README! Your component would look like:

Copyconst [text, setText] = useState(JSON.stringify(yourJsonFile, null, 2));

function handleChange(text, event) {
  try {
    setText(text && JSON.parse(text));
  } catch (error) {
    // pass, user is editing
  }
}

return (
  <AceEditor
    mode="java"
    theme="github"
    onChange={handleChange}
    name="UNIQUE_ID_OF_DIV"
    editorProps={{ $blockScrolling: true }}
    value={text}
  />
);
2 of 3
0

In a React project, all your source code and assets are in the src folder. The compiler will put everything you need in the public folder. If the JSON file is not copied, you might need a plugin that copies static files to the public folder.

About your other question: do you want the user to be able to edit the JSON as a text string? Then you can just load the JSON and keep it as a string. That string you could put into some text input field. It could look something like this:

Copyfetch('assets/myfile.json')
    .then(responseString => {
        myEditableTextField.value = responseString
    })

To store the results after the user edited it, you will still need some kind of server page (NodeJS or PHP) that can save the file back to a JSON file after editing.

But note this is still bad practice. There is an extremely high chance that the JSON will not be correct after the user has edited it.

It would be better to build some kind of CMS that edits all the JSON properties separately.

Copyfetch('assets/myfile.json')
    .then(responseString => responseString.json())
    .then(data => {
        myEditablenameField.value = data.name
        // etc. for all values in the json file
    })
🌐
GitHub
github.com › vankop › jsoneditor-react › issues
vankop/jsoneditor-react
react wrapper implementation for https://github.com/josdejong/jsoneditor - vankop/jsoneditor-react
Author   vankop