Gathering detailed insights and metrics for jsoneditor
Gathering detailed insights and metrics for jsoneditor
Gathering detailed insights and metrics for jsoneditor
Gathering detailed insights and metrics for jsoneditor
vanilla-jsoneditor
A web-based tool to view, edit, format, transform, and validate JSON
vue3-ts-jsoneditor
[](https://badge.fury.io/js/vue3-ts-jsoneditor)   <br> [
SCSS (6.75%)
HTML (5.63%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
11,972 Stars
1,813 Commits
2,068 Forks
227 Watchers
5 Branches
86 Contributors
Updated on Jul 11, 2025
Latest Version
10.2.0
Package Id
jsoneditor@10.2.0
Unpacked Size
7.72 MB
Size
1.92 MB
File Count
128
NPM Version
11.1.0
Node Version
23.9.0
Published on
Mar 28, 2025
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
8
JSON Editor is a web-based tool to view, edit, format, and validate JSON. It has various modes such as a tree editor, a code editor, and a plain text editor. The editor can be used as a component in your own web application. It can be loaded as CommonJS module, AMD module, or as a regular javascript file.
The library was originally developed as core component of the popular web application https://jsoneditoronline.org and has been open sourced since then.
Supported browsers: Chrome, Firefox, Safari, Edge.
Continuous integration tests are run on GitHub Actions, and LambdaTest is used to test on all major browsers.
Thanks, GitHub Actions and LambdaTest for the generous support for this open source project!
This library jsoneditor
has a successor: svelte-jsoneditor
. The new editor is not a one-to-one replacement, so there may be reasons to stick with jsoneditor
.
The main differences between the two are described here.
JSONEditor has various modes, with the following features.
with npm (recommended):
npm install jsoneditor
Alternatively, you can use another JavaScript package manager like https://yarnpkg.com/, or a CDN such as https://cdnjs.com/ or https://www.jsdelivr.com/.
Note that in the following example, you'll have to change the urls
jsoneditor/dist/jsoneditor.min.js
andjsoneditor/dist/jsoneditor.min.css
to match the place where you've downloaded the library, or fill in the URL of the CDN you're using.
1<!DOCTYPE HTML> 2<html lang="en"> 3<head> 4 <!-- when using the mode "code", it's important to specify charset utf-8 --> 5 <meta charset="utf-8"> 6 7 <link href="jsoneditor/dist/jsoneditor.min.css" rel="stylesheet" type="text/css"> 8 <script src="jsoneditor/dist/jsoneditor.min.js"></script> 9</head> 10<body> 11 <div id="jsoneditor" style="width: 400px; height: 400px;"></div> 12 13 <script> 14 // create the editor 15 const container = document.getElementById("jsoneditor") 16 const options = {} 17 const editor = new JSONEditor(container, options) 18 19 // set json 20 const initialJson = { 21 "Array": [1, 2, 3], 22 "Boolean": true, 23 "Null": null, 24 "Number": 123, 25 "Object": {"a": "b", "c": "d"}, 26 "String": "Hello World" 27 } 28 editor.set(initialJson) 29 30 // get json 31 const updatedJson = editor.get() 32 </script> 33</body> 34</html>
The code of the JSON Editor is located in the folder ./src
. To build
jsoneditor:
Install dependencies:
npm install
Build JSON Editor:
npm run build
This will generate the files ./jsoneditor.js
, ./jsoneditor.css
, and
minified versions in the dist of the project.
To automatically build when a source file has changed:
npm start
This will update ./jsoneditor.js
and ./jsoneditor.css
in the dist folder
on every change, but it will NOT update the minified versions as that's
an expensive operation.
Run unit tests:
npm test
Run code linting (JavaScript Standard Style):
npm run lint
The source code of JSONEditor consists of CommonJS modules. JSONEditor can be bundled in a customized way using a module bundler like browserify or webpack. First, install all dependencies of jsoneditor:
npm install
To create a custom bundle of the source code using browserify:
browserify ./index.js -o ./jsoneditor.custom.js -s JSONEditor
The Ace editor, used in mode code
, accounts for about one third of the total
size of the library. To exclude the Ace editor from the bundle:
browserify ./index.js -o ./jsoneditor.custom.js -s JSONEditor -x brace -x brace/mode/json -x brace/ext/searchbox
To minify the generated bundle, use uglifyjs:
uglifyjs ./jsoneditor.custom.js -o ./jsoneditor.custom.min.js -m -c
jsoneditor
is released as open source under the permissive the Apache 2.0 license.
If you are using jsoneditor commercially, there is a social (but no legal) expectation that you help fund its maintenance. Start here.
5.3/10
Summary
Regular Expression Denial of Service in jsoneditor
Affected Versions
< 9.5.6
Patched Versions
9.5.6
6.1/10
Summary
Cross-site Scripting in jsoneditor
Affected Versions
< 9.0.2
Patched Versions
9.0.2
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 5
Reason
8 existing vulnerabilities detected
Details
Reason
Found 3/22 approved changesets -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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