Gathering detailed insights and metrics for jsoneditor-react-ext
Gathering detailed insights and metrics for jsoneditor-react-ext
Gathering detailed insights and metrics for jsoneditor-react-ext
Gathering detailed insights and metrics for jsoneditor-react-ext
react wrapper implementation for https://github.com/josdejong/jsoneditor
npm install jsoneditor-react-ext
Typescript
Module System
47.1
Supply Chain
95.9
Quality
73.7
Maintenance
100
Vulnerability
99.6
License
CSS (72.31%)
JavaScript (27.69%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
70 Commits
1 Forks
1 Watchers
4 Branches
1 Contributors
Updated on Oct 05, 2021
Latest Version
1.0.1
Package Id
jsoneditor-react-ext@1.0.1
Unpacked Size
139.56 kB
Size
27.06 kB
File Count
11
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
2
32
This is a forked version of the json-editor-react When using this as part of a NextJS application we run into the CSS Import Dependency Issue. This is a workaround for that.
npm install --save jsoneditor jsoneditor-react-ext
1import { JsonEditor as Editor } from 'jsoneditor-react-ext'; 2import 'jsoneditor-react/es/editor.min.css';
later in render method:
1render() { 2 return ( 3 <Editor 4 value={yourJson} 5 onChange={this.handleChange} 6 /> 7 ); 8}
If you want use with Ajv:
1import Ajv from 'ajv'; 2 3const ajv = new Ajv({ allErrors: true, verbose: true }); 4 5... 6 7render() { 8 return ( 9 <Editor 10 value={yourJson} 11 onChange={this.handleChange} 12 ajv={ajv} 13 schema={yourSchema} 14 /> 15 ); 16}
If you want use with Ace Editor:
1import ace from 'brace'; 2import 'brace/mode/json'; 3import 'brace/theme/github'; 4 5... 6 7render() { 8 return ( 9 <Editor 10 value={yourJson} 11 onChange={this.handleChange} 12 ace={ace} 13 theme="ace/theme/github" 14 schema={yourSchema} 15 /> 16 ); 17}
Or:
1import 'brace'; 2import 'brace/mode/json'; 3import 'brace/theme/github'; 4 5... 6 7render() { 8 return ( 9 <Editor 10 value={yourJson} 11 onChange={this.handleChange} 12 theme="ace/theme/github" 13 schema={yourSchema} 14 /> 15 ); 16}
Or define your own ace theme
If you using webpack and es6 dynamic imports you can load jsoneditor-react
asynchronously.
You can use react-imported-component or your own implementation
1import importedComponent from 'react-imported-component'; 2 3const JsonEditor = importedComponent(() => import(/* webpackChunkName:'jsoneditor' */'jsoneditor-react'));
Or with Ajv and Ace Editor:
1const JsonEditor = importedComponent(() => Promise.all([ 2 import(/* webpackChunkName:'jsoneditor' */'jsoneditor-react'), 3 import(/* webpackChunkName:'jsoneditor' */'brace'), 4 import(/* webpackChunkName:'jsoneditor' */'ajv'), 5 import(/* webpackChunkName:'jsoneditor' */'brace/mode/json'), 6 import(/* webpackChunkName:'jsoneditor' */'brace/theme/github') 7]).then(([{ JsonEditor: Editor }, ace, Ajv ]) => { 8 const ajv = new Ajv(); 9 return function EditorHoc(props) { 10 return ( 11 <Editor 12 ace={ace} 13 ajv={ajv} 14 theme="ace/theme/github" 15 {...props} 16 /> 17 ); 18 } 19}));
You can view usage of jsoneditor-react
using our storybook.
npm run dev
http://localhost:9001
Right now only one story exporting in storybook: /stories/Editor.jsx
, to add more use /.storybook/config.js
Working on docs
folder.
Right now you can use props declaration
Will be soon!😁
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
78 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More