🌐
npm
npmjs.com › package › @types › jsoneditor-for-react
@types/jsoneditor-for-react - npm
November 7, 2023 - import JSONEditor, { JSONEditorOptions } from "jsoneditor"; import * as React from "react"; export interface ReactJsonEditorProps { values: {}; } export default class ReactJsoneditor extends React.Component<ReactJsonEditorProps> { private editor?: JSONEditor | undefined; private options?: JSONEditorOptions | undefined; }
      » npm install @types/jsoneditor-for-react
    
🌐
GitHub
github.com › felipecarrillo100 › react-jsoneditor-wrapper
GitHub - felipecarrillo100/react-jsoneditor-wrapper: A React Typescript wrapper for jsoneditor by josdejong.
A React Typescript wrapper for jsoneditor by josdejong. - felipecarrillo100/react-jsoneditor-wrapper
Starred by 3 users
Forked by 2 users
Languages   TypeScript 72.5% | CSS 27.5% | TypeScript 72.5% | CSS 27.5%
🌐
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
I have since ported the code into React TypeScript as under. Am I doing the right thing? Are any further improvements recommended? ... 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} /> ); } }
🌐
npm
npmjs.com › package › jsoneditor-react
jsoneditor-react - npm
December 17, 2021 - 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 › vankop › jsoneditor-react › issues › 65
Typescript support · Issue #65 · vankop/jsoneditor-react
June 29, 2021 - Hello, is there any options to use this package with typescript? Original jsoneditor has typescript definitions in DefinetelyTyped. Would be glad any recommendations for usage with typescript:) thanks
Author   valerii15298
🌐
CodeSandbox
codesandbox.io › s › kxn7k5jyzo
JSONEditor + React + TypeScript - CodeSandbox
January 30, 2020 - JSONEditor + React + TypeScript by josdejong using jsoneditor, mathjs, react, react-dom, react-scripts-ts
Published   Sep 12, 2018
Author   josdejong
🌐
CodeSandbox
codesandbox.io › s › jsoneditor-react-typescript-forked-qtrv9
JSONEditor + React + TypeScript (forked) - CodeSandbox
January 31, 2022 - JSONEditor + React + TypeScript (forked) by prateek.rohila using @types/lodash, jsoneditor, lodash, mathjs, react, react-dom, react-jsoneditor-wrapper, react-scripts-ts
Published   Jan 28, 2022
Author   prateek.rohila
🌐
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 - We’ll use TypeScript for our code examples to ensure type safety and better development practices. ... First, let’s start by installing @microlink/react-json-view, a maintained and powerful library for editing JSON data in React. ... Next, we’ll create a JSON editor component using @microlink/react-json-view. ... import React, { useState } from 'react'; import ReactJson from '@microlink/react-json-view'; interface JsonEditorProps { json: object; onChange: (json: object) => void; } const JsonEditor: React.FC<JsonEditorProps> = ({ json, onChange }) => { const handleJsonChange = (e: any) => { onChange(e.updated_src); }; return ( <div> <h1>JSON Editor using react-json-view</h1> <ReactJson src={json} onEdit={handleJsonChange} onAdd={handleJsonChange} onDelete={handleJsonChange} theme="monokai" /> </div> ); }; export default JsonEditor;
Find elsewhere
🌐
GitHub
github.com › vankop › jsoneditor-react
GitHub - vankop/jsoneditor-react: react wrapper implementation for https://github.com/josdejong/jsoneditor
react wrapper implementation for josdejong/jsoneditor
Starred by 277 users
Forked by 107 users
Languages   JavaScript 99.8% | CSS 0.2% | JavaScript 99.8% | CSS 0.2%
🌐
DhiWise
dhiwise.com › post › mastering-jsoneditor-react-for-efficient-data-manipulation
Mastering JSONEditor React: A Comprehensive Guide
October 25, 2023 - JSONEditor React is a powerful tool that allows developers to create, edit, and view JSON data in a user-friendly format. It is a wrapper around the JSONEditor library, which provides a graphical user interface for working with JSON data.
🌐
Stack Overflow
stackoverflow.com › questions › 71948069 › how-to-test-jsoneditor-in-react-component
reactjs - How to test jsoneditor in react component - Stack Overflow
import React, { useEffect, useRef } from 'react' import JSONEditor from "jsoneditor"; import 'jsoneditor/dist/jsoneditor.css'; export const JsonPanel = ({ json }: any) => { const jsonRef = useRef<HTMLDivElement | null>(null) useEffect(() => { let jsonEditor: JSONEditor | null = null if (jsonRef.current) { jsonEditor = new JSONEditor(jsonRef.current, { modes: ['code', 'tree'] }, json); } return () => jsonEditor?.destroy() }, [json]) return ( <div id='json-panel' ref={jsonRef} /> ) }
🌐
Carlosnz
carlosnz.github.io › json-edit-react
JSON•Edit•React
A highly-configurable React component for editing or viewing JSON/object data
🌐
Webdevtutor
webdevtutor.net › blog › typescript-react-json-editor
Creating a JSON Editor with TypeScript and React
npx create-react-app my-json-editor --template typescript cd my-json-editor · Next, install the necessary dependencies for working with JSON data and rendering it in the editor. You can use libraries like react-json-editor-ajv, ajv, and @types/ajv for JSON schema validation. ... Create a new component named JsonEditor that will serve as the main editor interface.
🌐
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%
🌐
Bytescrum
blog.bytescrum.com › how-to-use-jsoneditor-in-a-react-app
How to Use JSONEditor in a React App
April 8, 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
🌐
npm
npmjs.com › package › @types › jsoneditor
@types/jsoneditor - npm
TypeScript definitions for jsoneditor. Latest version: 9.9.6, last published: 3 months ago. Start using @types/jsoneditor in your project by running `npm i @types/jsoneditor`. There are 9 other projects in the npm registry using @types/jsoneditor.
      » npm install @types/jsoneditor
    
🌐
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!

🌐
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.
🌐
Npm
npm.io › search › keyword:jsonEditor
JsonEditor | npm.io
angular4jsoneditorangular4-jsoneditorng4-jsoneditorangular1.0.7 • Published 8 years ago · A React Typescript wrapper for jsoneditor by josdejong.