SourceForge
sourceforge.net › projects › vue-json-pretty.mirror
Vue Json Pretty download | SourceForge.net
Download Vue Json Pretty for free. A JSON tree view component that is easy to use . A Vue component for rendering JSON data as a tree structure. The CSS file is included separately and needs to be imported manually.
npm
npmjs.com › package › vue-json-pretty
vue-json-pretty - npm
Latest version: 2.6.0, last published: 4 months ago. Start using vue-json-pretty in your project by running `npm i vue-json-pretty`. There are 204 other projects in the npm registry using vue-json-pretty.
» 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.
import Vue from 'vue' import VueJsonPretty from 'vue-json-pretty' Vue.component("vue-json-pretty", VueJsonPretty)
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%
Leezng
leezng.github.io › vue-json-pretty
vue-json-pretty
Leezng (Daniel) · 博客 开源项目 关于我
jsDelivr
jsdelivr.com › package › npm › vue-json-pretty
vue-json-pretty CDN by jsDelivr - A CDN for npm and GitHub
October 28, 2025 - A free, fast, and reliable CDN for vue-json-pretty. A JSON tree view component that is easy to use and also supports data selection.
Published Oct 12, 2017
Repository https://github.com/leezng/vue-json-pretty
GitHub
github.com › leezng › vue-json-pretty › releases
Releases · leezng/vue-json-pretty
leezng / vue-json-pretty Public · Notifications · You must be signed in to change notification settings · Fork 141 · Star 1.4k · Releases · leezng/vue-json-pretty · 28 Oct 11:03 · leezng · v2.6.0 · 14451fc · Compare · Filter · Loading · There was an error while loading.
Author leezng
UNPKG
unpkg.com › browse › vue-json-pretty@1.6.7 › README.md
vue-json-pretty
- As a JSON Formatter - Get item data from JSON ## Links - [Demo](https://leezng.github.io/vue-json-pretty) - [Github](https://github.com/leezng/vue-json-pretty) - [NPM](https://www.npmjs.com/package/vue-json-pretty) - [中文文档](./README.zh-CN.md) ## Install ```js npm install vue-json-pretty ...
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": "esm/vue-json-pretty.js", "scripts": { "dev": "node build/dev-server.js", "build": "npm run build:main && npm run build:esm && npm run build:dts", "build:main": "node build/build.js", "build:esm": "cross-env ESM=true node build/build.js", "build:example": "cross-env EXAMPLE_ENV=true node build/build.js", "build:dts": "tsc --p tsco
Author leezng
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.
Npm
npm.io › package › vue-json-pretty
Vue-json-pretty NPM | npm.io
Weekly downloads · 18,411 · License ... Modern browsers, Electron and Internet Explorer 11 (with polyfills) Server-side Rendering · $ npm install vue-json-pretty --save ·...
Awesomeopensource
awesomeopensource.com › project › leezng › vue-json-pretty
Vue Json Pretty Alternatives
Monthly Downloads · Dependent Repos90 · Dependent Packages160 · Total Releases53 · Latest ReleaseMarch 22, 2023 · Categories · Programming Languages > Javascript · Web User Interface > Vue · Data Formats > Json · User Interface Components > Vue Component · Site · Repo · Alternatives To Vue Json Pretty ·