Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

json-editor-vue

> 前端框架
Open source

Vue 2/3 isomorphic JSON editor, viewer, formatter and validator.

692 stars0 likes2 views
WebsiteGitHub

About

Vue 2/3 isomorphic JSON editor, viewer, formatter and validator.

JSON Editor Vue

Vue 2/3 isomorphic JSON editor, viewer, formatter and validator.

English | 简体中文

 

Features

  • Performant
  • Handle large JSON documents up to 512 MB
  • Deserialize with destr by default, up to 35.96x faster than JSON.parse
  • Powerful
  • View, edit, format, validate, compact, sort, query, filter, transform, repair, highlight JSON
  • 7 primitive data types including BigInt and Symbol
  • 3 edit modes: text mode & tree mode & table mode
  • 2 themes: light theme & dark theme
  • 2-way binding: parsed or stringified JSON
  • Flexible
  • Vue 2.6/2.7/3 isomorphic
  • Support SSR, Nuxt 2/3/4 isomorphic
  • Support Vite, Vue CLI, webpack, CDN...
  • Support microfrontends
  • Support PC & mobile devices
  • Local registration & configuration, or global registration & configuration (Powered by vue-global-config)

Cases

   LangBot


  
   Mealie


  
   LangChain4j-AIDeepin

[!Important]

json-editor-vue had surpassed 5 million downloads:

While having a extremely dismal number of Stars:

Please consider starring ⭐ to support our ongoing maintenance if it helps:

Test Coverage

File % Stmts % Branch % Funcs % Lines
All files 100 100 100 100
constants.ts 100 100 100 100
index.ts 100 100 100 100

Install

Vue 3

bash
npm i json-editor-vue

Local Registration

xml

  

Global Registration

typescript
import JsonEditorVue from 'json-editor-vue'
import { createApp } from 'vue'

createApp()
  .use(JsonEditorVue, {
    // global props & attrs (one-way data flow)
  })
  .mount('#app')

CDN + ESM

xml

  
    
  

  
    

    

    

  

CDN + IIFE

[!Warning]

Not yet supported because vanilla-jsoneditor does not export IIFE or UMD,

please leave a message here if you need it.

xml

  
    
  

  
    

    

    

    
    

    

    

  

Vue 2.7

bash
npm i json-editor-vue

Local Registration

xml

  

Global Registration

typescript
import JsonEditorVue from 'json-editor-vue'
import Vue from 'vue'

Vue.use(JsonEditorVue, {
  // global props & attrs (one-way data flow)
})

CDN + ESM

xml

  
    
  

  
    

    

    

  

CDN + IIFE

[!Warning]

Not yet supported because vanilla-jsoneditor does not export IIFE or UMD,

please leave a message here if you need it.

xml

  
    
  

  
    

    

    

    
    

    

    

  

Vue 2.6 or Earlier

bash
npm i @vue/composition-api json-editor-vue

Local Registration

xml

  

Global Registration

typescript
import VCA from '@vue/composition-api'
import JsonEditorVue from 'json-editor-vue'
import Vue from 'vue'

Vue.use(VCA)
Vue.use(JsonEditorVue, {
  // global props & attrs (one-way data flow)
})

CDN + ESM

xml

  
    
  

  
    

    

    

    

  

CDN + IIFE

[!Warning]

Not yet supported because vanilla-jsoneditor does not export IIFE or UMD,

please leave a message here if you need it.

xml

  
    
  

  
    

    

    

    

    
    

    

    

  

Nuxt 3

bash
npm i json-editor-vue

Local Registration

xml

  
xml

  

Global Registration as a Module

typescript
// nuxt.config.ts

export default defineNuxtConfig({
  modules: ['json-editor-vue/nuxt'],
})
xml

  

Global Registration as a Plugin

typescript
// ~/plugins/JsonEditorVue.client.ts

import JsonEditorVue from 'json-editor-vue'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(JsonEditorVue, {
    // global props & attrs (one-way data flow)
  })
})
xml

  

Nuxt 2 + Vue 2.7

bash
npm i json-editor-vue

Local Registration

typescript
// nuxt.config.js

export default {
  build: {
    // Vite ≥4 (Rollup ≥3) uses ES2020 as compiler target by default
    // Therefore Vite-≥4-built outputs should be transpiled in webpack 4
    transpile: ['json-editor-vue'],
    extend(config) {
      // Getting webpack to recognize the `.mjs` file
      config.module.rules.push({
        test: /\.mjs$/,
        include: /node_modules/,
        type: 'javascript/auto',
      })
    },
  },
}
xml

  

Global Registration

typescript
// nuxt.config.js

export default {
  plugins: ['~/plugins/JsonEditorVue.client'],
  build: {
    // Vite ≥4 (Rollup ≥3) uses ES2020 as compiler target by default
    // Therefore Vite-≥4-built outputs should be transpiled in webpack 4
    transpile: ['json-editor-vue'],
    extend(config) {
      // Getting webpack to recognize the `.mjs` file
      config.module.rules.push({
        test: /\.mjs$/,
        include: /node_modules/,
        type: 'javascript/auto',
      })
    },
  },
}
typescript
// ~/plugins/JsonEditorVue.client.js

import JsonEditorVue from 'json-editor-vue'
import Vue from 'vue'

Vue.use(JsonEditorVue, {
  // global props & attrs (one-way data flow)
})
xml

  
    
  

Nuxt 2 + Vue 2.6 or Earlier

bash
npm i @vue/composition-api json-editor-vue

Local Registration

typescript
// nuxt.config.js

export default {
  build: {
    // Vite ≥4 (Rollup ≥3) uses ES2020 as compiler target by default
    // Therefore Vite-≥4-built outputs should be transpiled in webpack 4
    transpile: ['json-editor-vue'],
    extend(config) {
      // Getting webpack to recognize the `.mjs` file
      config.module.rules.push({
        test: /\.mjs$/,
        include: /node_modules/,
        type: 'javascript/auto',
      })
    },
  },
}
xml

  

Global Registration

typescript
// nuxt.config.js

export default {
  plugins: ['~/plugins/JsonEditorVue.client'],
  build: {
    // Vite ≥4 (Rollup ≥3) uses ES2020 as compiler target by default
    // Therefore Vite-≥4-built outputs should be transpiled in webpack 4
    transpile: ['json-editor-vue'],
    extend(config) {
      // Getting webpack to recognize the `.mjs` file
      config.module.rules.push({
        test: /\.mjs$/,
        include: /node_modules/,
        type: 'javascript/auto',
      })
    },
  },
}
typescript
// ~/plugins/JsonEditorVue.client.js

import VCA from '@vue/composition-api'
import JsonEditorVue from 'json-editor-vue'
import Vue from 'vue'

Vue.use(VCA)
Vue.use(JsonEditorVue, {
  // global props & attrs (one-way data flow)
})
xml

  
    
  

Vite

Ready to use right out of the box.

Vue CLI 5 (webpack 5)

Ready to use right out of the box.

Vue CLI 4 (webpack 4)

≥ v4.5.15

javascript
// vue.config.js

module.exports = {
  // Vite ≥4 (Rollup ≥3) uses ES2020 as compiler target by default
  // Therefore Vite-≥4-built outputs should be transpiled in webpack 4
  transpileDependencies: ['json-editor-vue'],
}

< v4.5.15

javascript
// vue.config.js

module.exports = {
  // Vite ≥4 (Rollup ≥3) uses ES2020 as compiler target by default
  // Therefore Vite-≥4-built outputs should be transpiled in webpack 4
  transpileDependencies: ['json-editor-vue'],
  configureWebpack: {
    module: {
      rules: [
        // Getting webpack to recognize the `.mjs` file
        {
          test: /\.mjs$/,
          include: /node_modules/,
          type: 'javascript/auto',
        },
      ],
    },
  },
}

Vue CLI 3 (webpack 4)

bash
npm i @babel/plugin-proposal-nullish-coalescing-operator @babel/plugin-proposal-optional-chaining -D
javascript
// babel.config.js

module.exports = {
  plugins: [
    '@babel/plugin-proposal-nullish-coalescing-operator',
    '@babel/plugin-proposal-optional-chaining',
  ],
}
javascript
// vue.config.js

module.exports = {
  // Vite ≥4 (Rollup ≥3) uses ES2020 as compiler target by default
  // Therefore Vite-≥4-built outputs should be transpiled in webpack 4
  transpileDependencies: ['json-editor-vue'],
  chainWebpack(config) {
    // Getting webpack to recognize the `.mjs` file
    config.module
      .rule('mjs')
      .include
      .add(/node_modules/)
      .type('javascript/auto')
      .end()
  },
}

Vue CLI 2 & 1 (webpack 3)

Vue CLI 2 & 1 pull the template from vuejs-templates/webpack.

bash
npm i @babel/core@latest @babel/preset-env@latest babel-loader@latest -D
javascript
// babel.config.js

module.exports = {
  presets: [
    '@babel/preset-env',
  ],
}
javascript
// webpack.base.conf.js

module.exports = {
  module: {
    rules: [
      // Getting webpack to recognize the `.mjs` file
      {
        test: /\.mjs$/,
        loader: 'babel-loader',
        include: [resolve('src'), resolve('test'), resolve('node_modules/json-editor-vue')],
      },
    ],
  },
}

Update Dependency Versions

bash
npm rm json-editor-vue && npm i json-editor-vue

[!Warning]

Not working for major version bump, fot that you can specify dependency versions (if necessary)

Specify Dependency Versions

json5
// package.json
{
  // npm/cnpm/bun
  "overrides": {
    "vanilla-jsoneditor": "***",
    "vue-demi": "***"
  },
  // yarn/bun
  "resolutions": {
    "vanilla-jsoneditor": "***",
    "vue-demi": "***"
  },
  // pnpm
  "pnpm": {
    "overrides": {
      "vanilla-jsoneditor": "***",
      "vue-demi": "***"
    }
  }
}

With Scope:

json5
// package.json
{
  // npm/cnpm/bun
  "overrides": {
    "json-editor-vue": {
      "vanilla-jsoneditor": "***",
      "vue-demi": "***"
    }
  },
  // yarn/bun
  "resolutions": {
    "json-editor-vue/vanilla-jsoneditor": "***",
    "json-editor-vue/vue-demi": "***"
  },
  // pnpm
  "pnpm": {
    "overrides": {
      "json-editor-vue>vanilla-jsoneditor": "***",
      "json-editor-vue>vue-demi": "***"
    }
  }
}

Props

Name Description Type Default
v-model /
modelValue (Vue 3) /
value (Vue 2) binding value any
mode /
v-model:mode (Vue 3) /
:mode.sync (Vue 2) edit mode Mode /
you can use string in JS Mode.tree
debounce debounce delay to update the binding value when typing in text mode, in milliseconds number 300
stringified whether to keep the binding value as stringified JSON in text mode boolean true
... proper

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptajvbiginteditformat

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架