@chinanetcloud/react-nested-json-table

0.2.0 • Public • Published

react-nested-json-table

A simple React component that renders any deeply nested json into a collapsible table

#####Install

npm install react-nested-json-table

#####Turn this deeply nested json:

[
  { "foo": 'bar' }, 
  { 
    "nested": { "nested-arr": [
      { "simple": "object" }, 
      { "another-simple": "object" }, 
      { "arr": ["1", 2, { "variant": "3" }] } ] } 
  }, 
  { 
    "attr0": 6789, 
    "attr1": [{"key-0": "foo", "key-1": "bar"}], 
    "attr2": ["mem-0", "mem-1"]
  }
]

#####Into this: react-nested-json-table

#####Since version 0.2.x Set expandAll={true} to expand all nodes on initial render expand-all

Readme

Keywords

Package Sidebar

Install

npm i @chinanetcloud/react-nested-json-table

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • chinanetcloud