
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
json-edit-react
Advanced tools
A highly-configurable React component for editing or viewing JSON/object data
š” Try the Live Demo to see these features in action!
# Depending on your package manager:
npm i json-edit-react
# OR
yarn add json-edit-react
import { JsonEditor } from 'json-edit-react'
// In your React component:
return (
<JsonEditor
data={ jsonData }
setData={ setJsonData } // optional
{ ...otherProps } />
);
(for end user)
It's pretty self explanatory (click the "edit" icon to edit, etc.), but there are a few not-so-obvious ways of interacting with the editor:
Cmd/Ctrl/Shift-Enter
to add a new line (Enter
submits the value)Enter
for new line, and Cmd/Ctrl/Shift-Enter
for submitEscape
to cancel editingCmd/Ctrl
will copy the path to the selected node rather than its valueTab
/Shift-Tab
keys.jsonParse
prop.Have a play with the Demo app to get a feel for it!
For FULL DOCUMENTATION, visit https://github.com/CarlosNZ/json-edit-react
FAQs
React component for editing or viewing JSON/object data
The npm package json-edit-react receives a total of 103,579 weekly downloads. As such, json-edit-react popularity was classified as popular.
We found that json-edit-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.