Ember addon that exposes a component {{json-viewer}}
.
Pass it a JSON object (not string) as json
: {{json-viewer json=this.jsonValue}}
.
Demo: http://addepar.github.io/ember-json-viewer
- Ember.js v3.8 or above
- Ember CLI v2.13 or above (unconfirmed)
- Node.js v10 or above (unconfirmed)
ember install ember-json-viewer
You can use options by passing in an object (or hash) with the following keys:
The string prepended to a key when that particular key value is expanded.
The string prepended to a key when that particular key value is collapsed.
This sets the initial level of expanded items. collapseDepth=0
will have all properties collapsed completely. collapseDepth=1
will expand the first level of keys.
See the Contributing guide for details.
npm run deploy
This project is licensed under the MIT License.