js-json-tree
v0.3.2
Published
_A JSON view component for React._
Downloads
11
Maintainers
Readme
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 [email protected]