Vue.js JSON tree viewer component
npm i v-json-tree --save
<!-- In <body>, after Vue import -->
<script type="text/javascript" src="https://unpkg.com/v-json-tree/dist/vJsonTree.umd.js"></script>
In your component file
import vJsonTree from "v-json-tree";
Then register:
components: {
vJsonTree
},
<script>
Vue.component("v-json-tree", vJsonTree);
new Vue({
// ...
})
</script>
Author: mikemenaker
Live Demo: https://jsfiddle.net/mikemenaker/8zxwavrk/
GitHub: https://github.com/mikemenaker/vue-json-tree
#vuejs #javascript #vue-js