Skip to content

yachaoxiong/js-json-tree

Repository files navigation

JSON tree viewer

A JSON view component for React.

Here is the demo

Feature

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

Install

npm install --save js-json-tree

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published