2017-12-15 21:39:18 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { computed } from '@ember/object';
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
classNames: ['json-viewer'],
|
|
|
|
|
|
|
|
json: null,
|
2018-07-31 00:44:07 +00:00
|
|
|
jsonStr: computed('json', function() {
|
2019-03-26 07:46:44 +00:00
|
|
|
return JSON.stringify(this.json, null, 2);
|
2017-09-19 14:47:10 +00:00
|
|
|
}),
|
|
|
|
});
|