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);
    }
  }
})
Answer from Behnam on Stack Overflow
🌐
npm
npmjs.com › package › vue-json-pretty
vue-json-pretty - npm
October 28, 2025 - A JSON tree view component that is easy to use and also supports data selection.. 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 ...
      » npm install vue-json-pretty
    
Published   Oct 28, 2025
Version   2.6.0
Author   leezng
🌐
npm
npmjs.com › package › vue-json-viewer
vue-json-viewer - npm
Simple JSON viewer component, for Vue.js 2 or 3.
      » npm install vue-json-viewer
    
Published   Mar 03, 2022
Version   2.2.22
Author   陈峰
🌐
Netlify
jsonforms-vuetify-renderers.netlify.app
JSON Forms Vue 2 Vuetify example
We're sorry but the JSON Forms Vue 2 Vuetify example doesn't work properly without JavaScript enabled. Please enable it to continue
🌐
GitHub
github.com › eclipsesource › jsonforms-vuetify-renderers
GitHub - eclipsesource/jsonforms-vuetify-renderers · GitHub
See jsonforms.io and the main repository for more information about JSON Forms. See the README of the Vue 2 Vuetify renderer set for detailed instructions on how to consume and use the JSON Forms Vue 2 Vuetify renderer set.
Starred by 29 users
Forked by 25 users
Languages   Vue 73.5% | TypeScript 24.7% | JavaScript 1.6% | HTML 0.2%
🌐
Made with Vue.js
madewithvuejs.com › jsont
JSONT - JSON Formatting Tool - Made with Vue.js
March 6, 2023 - #Webapps #Vuetify #Dev Tools · 5.060 · Visit Site · JSON Formatting Tool · "JSONT is a simple and efficient online JSON formatting and editing tool. The app is built with Vue 3, Vite, Vuetify 3 & TailwindCSS."
Find elsewhere
🌐
Vuetify
vuetifyjs.com › en › components › treeview
Treeview component — Vuetify
The treeview component is a user interface that is used to represent hierarchical data in a tree structure.
🌐
Vue Script
vuescript.com › home › 7 best json viewer libraries for vue.js applications (2026 update)
7 Best JSON Viewer Libraries For Vue.js Applications (2026 Update) - Vue Script
December 29, 2025 - Whether you are an experienced front-end developer or getting started with Vue.js, you have probably come across the need to check and debug JSON data. In this article, we have collected the 7 best and open-source JSON viewer components for Vue.js that would help you to display JSON data intuitively.
🌐
Vue.js Examples
vuejsexamples.com › simple-json-viewer-component-for-vue-js
Simple JSON viewer component for Vue.js
September 18, 2018 - <json-viewer :value="jsonData"></json-viewer> <hr /> <json-viewer :value="jsonData" :expand-depth=5 copyable boxed sort></json-viewer>
🌐
CodeSandbox
codesandbox.io › examples › package › vue-json-viewer
vue-json-viewer examples - CodeSandbox
Use this online vue-json-viewer playground to view and fork vue-json-viewer example apps and templates on CodeSandbox.
🌐
GitHub
github.com › chenfengjw163 › vue-json-viewer
GitHub - chenfengjw163/vue-json-viewer: Simple JSON viewer component, for Vue.js 2 and support ssr
import Vue from 'vue' import JsonViewer from 'vue-json-viewer' // Import JsonViewer as a Vue.js plugin Vue.use(JsonViewer) // or // components: {JsonViewer} new Vue({ el: '#app', data() { return { jsonData: { total: 25, limit: 10, skip: 0, links: { previous: undefined, next: function () {}, }, data: [ { id: '5968fcad629fa84ab65a5247', firstname: 'Ada', lastname: 'Lovelace', awards: null, known: [ 'mathematics', 'computing' ], position: { lat: 44.563836, lng: 6.495139 }, description: `Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage's proposed mechanical general-purpose computer, the Analytical Engine.
Starred by 583 users
Forked by 96 users
Languages   Vue 65.8% | JavaScript 33.1% | Vue 65.8% | JavaScript 33.1%
🌐
Vue.js Feed
vuejsfeed.com › blog › a-schema-aware-json-editor-developed-with-vue-js
A schema-aware JSON Editor developed with Vue.js - Vue.js Feed
A schema-aware editor for JSON document. It provides a tree view to present the structure of a JSON document, the user can manipulate the JSON from the context menu. There is a text view to present the content of the JSON document and user may ...
🌐
Reddit
reddit.com › r/vuetifyjs › json formatter and converter made with vuetify
r/vuetifyjs on Reddit: JSON Formatter and Converter made with Vuetify
July 21, 2021 - Vuetify is a powerful UI Component Framework built from the ground up to be easy to learn and rewarding to master.
🌐
Reddit
reddit.com › r/vuejs › vue component for json editing?
r/vuejs on Reddit: Vue component for JSON editing?
May 20, 2018 -

I’m working on an interface which would allow me to edit an array of objects easily. I would like to be able to add new objects, and remove or edit the data of existing ones by just clicking on what I see. I can then save the final array of objects to file.

https://github.com/yourtion/vue-json-ui-editor is one option but I need to modify it very heavily to fit my needs. Are there other packages or components out there that I should know about?

🌐
GitHub
github.com › koumoul-dev › vuetify-jsonschema-form
GitHub - koumoul-dev/vuetify-jsonschema-form: Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
Based on Vue.js / Vuetify / JSON Schema / JSON Layout.
Starred by 582 users
Forked by 156 users
Languages   Vue 66.5% | JavaScript 22.9% | TypeScript 9.1% | Vue 66.5% | JavaScript 22.9% | TypeScript 9.1%
🌐
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.
A JSON tree view component that is easy to use and also supports data selection. - leezng/vue-json-pretty
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%