1.0.14 • Published 3 years ago
react-object-visualizer v1.0.14
Object Visualizer
A light weight react component to visualize the JSON object in a table format.
Example
Features
- can expand/collapse nested objects
- options to support levels of default expansion, especialy useful for smaller objects
- options to support customized size to expand object by default
How to use
- Import the mount function from the module
import { ObjectVisualizer } from "react-object-visualizer";
- add the component to code
// data is the object to be visualize, configs are optional config parameters
<ObjectVisualizer
object={data}
configs={{
defaultExpandLevels: 1,
defaultExpandObjectSizeLimit: 500
}}
></ObjectVisualizer>
- Check in Browser
The object should now be shown in a table format!