🌐
GitHub
github.com › jianxiaoBai › react-json-editor-ui
GitHub - jianxiaoBai/react-json-editor-ui: React-based visual json editor. · GitHub
import * as React from 'react' import * as ReactDOM from 'react-dom' import JsonEditor, { JsonEditorRef } from 'react-json-editor-ui' const App = () => { const editorRef = React.useRef<JsonEditorRef>(null) const [editObject, setEditObject] = React.useState<any>({ name: 'may', age: null, address: [ 'Panyu Shiqiao on Canton', 'Tianhe', { city: 'forida meta 11', }, ], others: { id: 1246, joinTime: '2017-08-20.
Starred by 48 users
Forked by 11 users
Languages   JavaScript 91.3% | TypeScript 7.0% | CSS 1.5% | HTML 0.2%
🌐
GitHub
github.com › CarlosNZ › json-edit-react
GitHub - CarlosNZ/json-edit-react: React component for editing/viewing JSON/object data · GitHub
A highly-configurable React component for editing or viewing JSON/object data · ✅ Easy inline editing of individual values or whole blocks of JSON text · 🔒 Granular control – restrict edits, deletions, or additions per element · 📏 ...
Starred by 617 users
Forked by 37 users
Languages   TypeScript 86.8% | CSS 5.5% | Python 4.1% | JavaScript 3.4% | HTML 0.2%
Discussions

JSON Viewer with Editor
Very cool. I could see using this in my admin dashboard for live updating my JSON-based application configuration. One tiny visual gripe: The default height of the text-area is too tall for single line inputs. The text-area should be the same size as the input, and grow as needed. This would also eliminate any jank seen when toggling edit mode. More on reddit.com
🌐 r/reactjs
9
26
August 1, 2017
How to edit a json file in react
Ok so the company I'm working in, wants a blog feature on their React website and all of the information from that blog will be stored inside a JSON file. My problem right now is that they also wan... More on stackoverflow.com
🌐 stackoverflow.com
Finding a JSON editor tool
Try react-jsonschema-form More on reddit.com
🌐 r/reactjs
5
3
December 20, 2022
Any react JSONeditor that can highlight difference between two objects?
https://microsoft.github.io/monaco-editor/playground.html#creating-the-diffeditor-navigating-a-diff Monaco has a diff editor, in which I had also used for comparing JSON files. More on reddit.com
🌐 r/reactjs
1
1
July 21, 2022
🌐
npm
npmjs.com › package › json-edit-react
json-edit-react - npm
October 1, 2025 - 🌏 Localisation — easily translate UI labels and messages · 🔄 Drag-n-drop re-ordering within objects/arrays · 🎹 Keyboard customisation — define your own key bindings ... import { JsonEditor } from 'json-edit-react' // In your React component: return ( <JsonEditor data={ jsonData } setData={ setJsonData } // optional { ...otherProps } /> );
      » npm install json-edit-react
    
Published   Oct 01, 2025
Version   1.29.0
Author   Carl Smith
🌐
CodeSandbox
codesandbox.io › examples › package › react-json-editor-ui
react-json-editor-ui examples - CodeSandbox
Use this online react-json-editor-ui playground to view and fork react-json-editor-ui example apps and templates on CodeSandbox.
🌐
Reddit
reddit.com › r/reactjs › json viewer with editor
r/reactjs on Reddit: JSON Viewer with Editor
August 1, 2017 -

I'm looking for feedback on react-json-view

it's a production-ready component for displaying and interacting with JSON objects.

Here's the Component Demo

features include:

  • base-16 themes

  • add/edit/delete nodes

  • clipboard enabled

  • clickable collapse/expand

I see this component being useful for any technical docs that allude to JSON data structures.

  • what would you use it for?

  • what features would you like to see added?

  • is there any reason this wouldn't be your go-to JSON and array viewer?

thank you for feedback!

🌐
Carlosnz
carlosnz.github.io › json-edit-react
JSON•Edit•React
A highly-configurable React component for editing or viewing JSON/object data
🌐
DhiWise
dhiwise.com › post › mastering-jsoneditor-react-for-efficient-data-manipulation
Mastering JSONEditor React: A Comprehensive Guide
October 25, 2023 - This component should handle the lifecycle of the JSONEditor instance and provide a way for parent components to interact with the editor. Here's a basic implementation of a JSONEditor React component:
Find elsewhere
🌐
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" />
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-ajrm
react-json-editor-ajrm - npm
January 29, 2023 - 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
🌐
GitHub
github.com › sujinleeme › json-studio
GitHub - sujinleeme/json-studio: 🖌 JSON Studio - JSON Schema Based Editor
JSON Schema Validation · monaco-react - Monaco Editor for React · fluent ui - A react component library developed by Microsoft · dirty-json - A JSON parser that tries to handle non-conforming or otherwise invalid JSON · Ajv - A fastest JSON ...
Starred by 151 users
Forked by 21 users
Languages   TypeScript 55.2% | JavaScript 40.0% | HTML 3.1% | CSS 1.7%
🌐
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
June 25, 2024 - In this blog post, I’ll walk you through how to build a JSON editor in React using both react-json-view and a custom implementation.
🌐
npm
npmjs.com › package › @charanjeet123 › react-json-editor-ui
@charanjeet123/react-json-editor-ui - npm
November 20, 2024 - > React-based visual json editor.. Latest version: 1.0.42, last published: 9 months ago. Start using @charanjeet123/react-json-editor-ui in your project by running `npm i @charanjeet123/react-json-editor-ui`. There are no other projects in the npm registry using @charanjeet123/react-json-editor-ui.
      » npm install @charanjeet123/react-json-editor-ui
    
Published   Nov 20, 2024
Version   1.0.42
Author   baixiaojian
🌐
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.
🌐
npm
npmjs.com › package › jsoneditor-react
jsoneditor-react - npm
render() { return ( <Editor value={yourJson} onChange={this.handleChange} theme="ace/theme/github" schema={yourSchema} /> ); } ... If you using webpack and es6 dynamic imports you can load jsoneditor-react asynchronously.
      » npm install jsoneditor-react
    
Published   Dec 17, 2021
Version   3.1.2
Author   Ivan Kopeykin
🌐
Bytescrum
blog.bytescrum.com › how-to-use-jsoneditor-in-a-react-app
How to Use JSONEditor in a React App
March 29, 2024 - import React, { useState, useEffect, useRef } from 'react'; import JSONEditor from 'jsoneditor'; const App = () => { const [jsonData, setJsonData] = useState(null); const editorRef = useRef(null); useEffect(() => { if (!editorRef.current) { return; } const fetchData = async () => { try { // Import the JSON file const response = await import('./data.json'); const initialJsonData = response.default; // Create the editor const options = {}; const editor = new JSONEditor(editorRef.current, options); editorRef.current.jsonEditor = editor; // Store the editor instance // Set the JSON data editor.set
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
    })
🌐
npm Trends
npmtrends.com › jsoneditor-vs-jsoneditor-react-vs-react-json-editor-ajrm
jsoneditor vs jsoneditor-react vs react-json-editor-ajrm | npm trends
Comparing trends for jsoneditor 10.4.2 which has 236,385 weekly downloads and 12,172 GitHub stars vs. jsoneditor-react 3.1.2 which has 29,797 weekly downloads and 277 GitHub stars vs. react-json-editor-ajrm 2.5.14 which has 58,049 weekly downloads and 360 GitHub stars.
🌐
GitHub
github.com › ismaelga › react-json-editor
GitHub - ismaelga/react-json-editor: A dynamic form component for react using JSON-Schema.
March 1, 2024 - react-json-editor takes a JavaScript object describing the shape of the data we want a user to provide - a schema - and automatically creates a form based on that schema.
Starred by 230 users
Forked by 42 users
Languages   JavaScript 97.8% | Shell 1.8% | HTML 0.4% | JavaScript 97.8% | Shell 1.8% | HTML 0.4%
🌐
Replit Docs
docs.replit.com › extensions › examples › json-editor
Create a JSON editor
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.