vue-json-edit

visual JSON editor built as an vue component
11,485 285
Install
npm install vue-json-edit
Latest Version:1.4.3
Vue:2
License:Apache 2
Last Updated:Dec 10, 2022
Links: GitHub  ·  npm
Maintainer: jinkin1995

Vue-Json-Edit

Visual JSON Editor built as an vue component. Provides a basic GUI

DEMO

Getting Started

npm install vue-json-edit --save

Usage

//import it in your project At your entry point

import vue from 'vue'
import JsonEditor from 'vue-json-edit'
  
Vue.use(JsonEditor)

Props

  • objData: json data
  • options
    • confirmText: strings of the confirm button
    • cancelText: strings of the cancel button

Example

Single file component


<template>
    <JsonEditor
        :options="{
            confirmText: 'confirm',
            cancelText: 'cancel',
        }"
        :objData="jsonData" 
        v-model="jsonData" >
    </JsonEditor>
</template>
<script>
export default {
    ...
    data: function() {
        return {
            jsonData: {
                name: 'mike',
                age: 23,
                phone: '18552129932',
                address: ['AAA C1', 'BBB C2']
            }
        }
    }
}
</script> 

Related Packages

vue-json-viewer

vuejs展示json的组件

2,352,644 579
vue-evjson-viewer

vuejs展示json的组件

522
vue-json-compare

A vue(2.x) components for compare JSON data

210,787
vue-json-tree

Vue component that renders JSON data in a collapsible tree structure.

141,887 50
json-tree-view-vue3

JSON tree rendering Vue3 component

110,063 39

Version History

Version Released License
1.4.3 Apache 2
1.4.2 Apache 2
1.4.1 Apache 2
1.4.0 Apache 2
1.3.4 Apache 2