ore-json-path-picker
v2.0.4
Published
a react json path picker, based on json-path-picker
Downloads
14
Readme
ore-json-path-picker
It is a json path picker for react based on json-path-picker. You can use it to create a json tree of any legal json string. And then you can click to choose a node in the tree and got the path string of the node from tree's root. Thank you for giving wonderfull library by zenggo. This library based on zenggo library
install
npm install --save-dev ore-json-path-picker
You need webpack
to pack it in your app, and use style-loader
and css-loader
to ensure the component's style work.
usage
path picker (fully controlled compoment):
<JsonPathPicker json={this.state.json} onChoose={this.onChoosePath} path={this.state.choosenPath} showString={true} />
onChoosePath = (path)=> {...}
1) npm run-script build
2) npm run-script compile
3) Copy css file
4) npm login
5) npm publish --access public