Socket
Socket
Sign inDemoInstall

v3-jsoneditor

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    v3-jsoneditor

Vue 3 JSONEditor


Version published
Maintainers
1
Created

Readme

Source

v3-jsoneditor

"Vue 3 JSON Editor" is a web-based application built with the Vue 3 JavaScript framework that allows users to easily create, view, and edit JSON data in a user-friendly interface.

Try the demo

https://v3-jsoneditor.netlify.app/

Installation

npm install v3-jsoneditor

Using

Import globally

import {createApp} from 'vue'
import App from './App.vue'
import Vue3Jsoneditor from 'v3-jsoneditor/src/Vue3Jsoneditor.vue'

const app = createApp(App)

// Register the VJsoneditor component globally
app.component('vue3-jsoneditor', Vue3Jsoneditor)

app.mount('#app')

Import

import Vue3Jsoneditor from 'v3-jsoneditor/src/Vue3Jsoneditor.vue'

export default {
    name: 'app',
    components: {
        Vue3Jsoneditor
    },
    data() {
        return {
            json: {
                "hello": "vue"
            }
        }
    },
}
<Vue3Jsoneditor ref="editor" v-model="json" :options="options"></Vue3Jsoneditor>

Options

NameDescriptiontypedefault
optionsJsoneditor params, You can look at the detailed configurationObject{ mode: 'code' }
v-modelObject valueObject{ }
currentModecurrent edit modeStringcode
heightDefault heightString-

Events

NameDescription
changecalled on json update
update:modelValueCalled on model value update
errorError callback

Support

If this helped you in any way, you can contribute to this project for long term survival by supporting me

💜 Support my open-source work on GitHub

Be sure to check out my sponsor page.

Thank you so much!!!

License

MIT

Keywords

FAQs

Last updated on 21 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc