js-json-tree
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

JSON tree viewer

A JSON view component for React.

Here is the demo

Feature

  • [x] expand/collapse the JSON tree
  • [x] remove/edit nodes
  • [x] Copy resource
  • [x] type of each node

How to use

import JsonTree from 'js-json-tree';
const exampleData={
  "id":2,
  "name":"test"
  "fruit":["apple","banana"]
  "hours":{"monday":{
    "opens_at":"8:38 AM",
    "closes_at":"8:31 PM",
    "is_closed":true
    }
  }
}
<JsonTree resource={exampleData}>

Contact Me

If you have more idea about improving this package, feel free to reach me at ericxiongdeveloper@gmail.com

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.23latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.23
0.3.12
0.3.01
0.2.30
0.2.21
0.2.11
0.2.01
0.1.92
0.1.81
0.1.72
0.1.61
0.1.51
0.1.40
0.1.21
0.1.10
0.1.01

Package Sidebar

Install

npm i js-json-tree

Weekly Downloads

18

Version

0.3.2

License

MIT

Unpacked Size

182 kB

Total Files

39

Last publish

Collaborators

  • gc-eric