I am trying to find a good UI package for showing off JSON files.
In my project I am using reactstrap as my main UI package.
I am looking for a package which shows off a JSON file in a tree like structure, where I can use a button or so for expanding the keys of the JSON file. I found angular-ui-tree, but I would prefer a library for react. The package if it would be the same as the angular-ui-tree would be perfectly fine, but also it would be nice to be properly updated, and maintaned. If there is no package option, I am also looking forward for some easy functions on how to do this without a package.
To clear out any misconceptions:
I need only to show off these JSON files, I don’t want to change the values, or to move any of the fields anywhere.
2
Answers
Is this what you are looking for?
https://github.com/microlinkhq/react-json-view
Maybe this can be a good option for you?
"React JSON Viewer Component, Extracted from redux-devtools. Supports iterable objects, such as Immutable.js."
https://www.npmjs.com/package/react-json-tree