npm
npmjs.com › package › vue-json-pretty
vue-json-pretty - npm
A Vue component for rendering JSON data as a tree structure. Now it supports Vue3 at least.
» npm install vue-json-pretty
Published Oct 28, 2025
Version 2.6.0
Author leezng
Repository https://github.com/leezng/vue-json-pretty
GitHub
github.com › leezng › vue-json-pretty
GitHub - leezng/vue-json-pretty: A JSON tree view component that is easy to use and also supports data selection.
Starred by 1.4K users
Forked by 141 users
Languages JavaScript 55.2% | TypeScript 26.3% | Vue 12.8% | Less 4.3% | HTML 1.4% | JavaScript 55.2% | TypeScript 26.3% | Vue 12.8% | Less 4.3% | HTML 1.4%
GitHub
github.com › leezng › vue-json-pretty › releases
Releases · leezng/vue-json-pretty
feat: support collapsedNodeLength for Vue3 by @boukadam in #260 · fix: Line numbers are included when selecting JSON content in the view #256 · Full Changelog: v2.2.4...v2.3.0 · boukadam · Assets 2 · Loading · There was an error while loading. Please reload this page. 12 Dec 06:26 · leezng · v1.9.5 · 515fe3b · Compare · Filter · Loading · There was an error while loading. Please reload this page. View all tags · 1.9.5 · feat: support collapsedNodeLength for vue2 by @boukadam in #259 ·
Author leezng
Leezng
leezng.github.io › vue-json-pretty
vue-json-pretty
Leezng (Daniel) · 博客 开源项目 关于我
SourceForge
sourceforge.net › projects › vue-json-pretty.mirror
Vue Json Pretty download | SourceForge.net
Now it supports Vue3 at least · See All Activity > JSON · MIT License · Vue Json Pretty Web Site · Other Useful Business Software · Build on Google Cloud with $300 in Free Credit · New to Google Cloud? Get $300 in free credit to explore Compute Engine, BigQuery, Cloud Run, Vertex AI, and 150+ other products.
npm
npmjs.com › package › @hirect › vue-json-pretty
@hirect/vue-json-pretty - npm
» npm install @hirect/vue-json-pretty
Published Mar 25, 2022
Version 1.0.0
Author leezng
Repository https://github.com/leezng/vue-json-pretty
Top answer 1 of 7
49
use this code:
<div id="vueapp">
<textarea v-model="jsonstr" rows="8" cols="40"></textarea>
<pre>{{ jsonstr | pretty }}</pre>
</div>
and JS:
new Vue({
el: '#vueapp',
data: {
jsonstr: '{"id":1,"name":"A green door","price":12.50,"tags":["home","green"]}'
},
filters: {
pretty: function(value) {
return JSON.stringify(JSON.parse(value), null, 2);
}
}
})
2 of 7
36
HTML and JS have this built into the language. Try...
<pre>{{ yourObject }}</pre>
This gives the default indent, to specify a custom indent provide it as the third argument to JSON.stringify(...).
// replace 2 with '\t' to do tab indentation
<pre>{{ JSON.stringify(yourObject, null, 2) }}</pre>
If you're outside of Vue then using a combo of JSON.stringify and <pre> will work.
Medium
medium.com › @anilkumarthakur60 › building-better-json-visualization-in-vue-3-d876310d03b0
Building Better JSON Visualization in Vue 3 | by Anil Kumar Thakur | Medium
October 23, 2024 - When working with complex data structures in JavaScript applications, especially JSON objects, it’s crucial to have a tool that helps visualize the data clearly. If you’re building a Vue 3 application and looking for a robust way to display your JSON data, the @anilkumarthakur/vue3-json-viewer ...
GitHub
github.com › leezng › vue-json-pretty › blob › dev › package.json
vue-json-pretty/package.json at dev · leezng/vue-json-pretty
"name": "vue-json-pretty", "version": "2.2.3", "description": "A JSON tree view component that is easy to use and also supports data selection.", "author": "leezng <im.leezng@gmail.com>", "main": "lib/vue-json-pretty.js", "module": ...
Author leezng
npm
npmjs.com › package › @kyuda › vue-json-pretty
@kyuda/vue-json-pretty - npm
A Vue component for rendering JSON data as a tree structure. Now it supports Vue3 at least.
» npm install @kyuda/vue-json-pretty
Published Mar 22, 2024
Version 2.0.1
Author leezng
Repository https://github.com/leezng/vue-json-pretty
npm
npmjs.com › package › @souljorje › vue-json-pretty
@souljorje/vue-json-pretty - npm
Use Vue3, see master. ... As a JSON Formatter. Get item data from JSON. Support big data. Modern browsers, Electron and Internet Explorer 11 (with polyfills) ... The CSS file is included separately and needs to be imported manually. You can either import CSS globally in your app (if supported by your framework) or directly from the component. <template> <div> <vue-json-pretty :path="'res'" :data="{ key: 'value' }" @click="handleClick"> </vue-json-pretty> </div> </template> <script> import VueJsonPretty from 'vue-json-pretty'; import 'vue-json-pretty/lib/styles.css'; export default { components: { VueJsonPretty, }, }; </script>
» npm install @souljorje/vue-json-pretty
Published May 02, 2022
Version 1.8.7
Author leezng
Repository https://github.com/leezng/vue-json-pretty
Skypack
skypack.dev › view › @alpine-code › vue-json-pretty
npm:@alpine-code/vue-json-pretty | Skypack
<script type="module"> import alpineCodeVueJsonPretty from 'https://cdn.skypack.dev/@alpine-code/vue-json-pretty'; </script> A Vue component for rendering JSON data as a tree structure.