# vue-json-editor

> A json editor of vue

Latest version **1.4.3** (published 2020-11-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-json-editor
pnpm add vue-json-editor
yarn add vue-json-editor
bun add vue-json-editor
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.3 |
| Published | 2020-11-13 |
| First published | 2017-04-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 1 |
| Unpacked size | 4.4 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 230 |
| Author | liuqi41 |
| Maintainers | liuqi41 |
| Keywords | vue-json-editor, vuejsoneditor, json-editor, jsoneditor, json, eidtor, vue |

## Links

- npm: https://www.npmjs.com/package/vue-json-editor
- Repository: https://github.com/dirkliu/vue-json-editor
- Homepage: https://github.com/dirkliu/vue-json-editor#readme
- Issues: https://github.com/dirkliu/vue-json-editor/issues
- npm.io page: https://npm.io/package/vue-json-editor

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.2.6

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.4.3 (latest) — 2020-11-13
- 1.4.2 — 2020-07-13
- 1.4.1 — 2020-07-06
- 1.4.0 — 2019-08-15
- 1.3.2 — 2019-07-15
- 1.3.1 — 2019-05-20
- 1.3.0 — 2019-03-20
- 1.2.3 — 2018-03-24
- 1.2.2 — 2018-02-09
- 1.2.1 — 2017-11-11
- 1.2.0 — 2017-08-11
- 1.1.2 — 2017-07-18
- 1.1.1 — 2017-04-26
- 1.1.0 — 2017-04-25
- 1.0.3 — 2017-04-19
- … 3 more at https://npm.io/package/vue-json-editor/versions

## README

# vue-json-editor

A json editor of vue.js

## Component properties

v-model：bind the [json object]
:show-btns: boolean, show the save button, default: true
:expandedOnStart: boolean, expand the JSON editor on start for the modes 'tree', 'view', and 'form', default: false
:mode: string, default: tree
:lang: string, default: en
@json-change: on json changed
@json-save: on json save
@has-error: on error

# How to use

## 1. Install using npm

```
npm install vue-json-editor --save
```

## 2. Use vue-json-editor in the vue component

```vue
<template>
  <div>
    <p>vue-json-editor</p>
    <vue-json-editor v-model="json" :show-btns="true" :expandedOnStart="true" @json-change="onJsonChange"></vue-json-editor>
  </div>
</template>

<script>
  import vueJsonEditor from 'vue-json-editor'

  export default {
    data () {
      return {
        json: {
          msg: 'demo of jsoneditor'
        }
      }
    },

    components: {
      vueJsonEditor
    },

    methods: {
      onJsonChange (value) {
        console.log('value:', value)
      }
    }
  }
</script>
```

---
_Source: https://npm.io/package/vue-json-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
