🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-jsoneditor

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jsoneditor

Json editor of react version

0.2.22
latest
Source
npm
Version published
Weekly downloads
24
-35.14%
Maintainers
1
Weekly downloads
 
Created
Source

jsoneditor

A react based tool to view, edit,and format JSON

DEMO

http://jsoneditor.hotcn.top/

google translate

Npm Module

Install

  $ npm install react-jsoneditor

Example

  import JsonEdit from 'react-jsoneditor'

  function changeVal(val){
    console.log(val,"-----changeVal------")
  }

  const json = {
    "array1": ["aaaaaaaaaaaaaaaaa", 1, {a:1}],
    "array2": [],
    "boolean": true,
    "null1": null,
    "null2": "",
    "null3": 0,
    "number": 1234,
    "object1": {"a": "b", "c": "d"},
    "string1": "Hello World",
    "one": {
      "two": {
        "three":[{
          "array1":{
            "array2":{
              "array3":5555
            }
          }
        }]
      }
    }
  };

  render(
    <JsonEdit json={json} changeVal={changeVal} />,
    document.getElementById('root')
  )

Keywords

json

FAQs

Package last updated on 19 Jun 2017

Did you know?

Socket

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.

Install

Related posts