@matpool/vue-json-view

vue3 component for displaying javascript arrays and JSON objects.
43,281 5
Install
npm install @matpool/vue-json-view
Latest Version:0.1.8
Vue:3
License:MIT
Last Updated:Feb 27, 2023
Links: GitHub  ·  npm
Maintainer: tangge1119

vue-json-view

JSON viewer component, for Vue.js 3.

This project is forked from react-json-view and is the vue3 version of that.

Show only, can’t modify.

Install

npm install --save @matpool/vue-json-view

Usage

// import the vue-json-view component
import VueJsonView from '@matpool/vue-json-view'

// use the component in your app!
<VueJsonView src={my_json_object} />

Props

Name Type Default Description
src JSON Object None This property contains your input JSON
name string or false false Contains the name of your root node. Use null or false for no name.
theme string "monokai" RJV supports base-16 themes. Check out the list of supported themes in the demo. A custom "monokai" theme applies by default.
collapsed boolean or integer false When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth.
sortKeys boolean false set to true to sort object keys

Related Packages

vue-json-views

一个用于展示json的vue组件

173,465
json-vuer

a json viewer and editor component for vue

1,535 6
vue-json-pretty

A JSON tree view component that is easy to use and also supports data selection.

10,656,769 1,471
vue-json-component

A VueJS JSON Tree View with no dependencies and module builds.

81,535 84
vue-json-cool

a json plugin for vue,support spread and shrinkage

17,877

Version History

Version Released License
0.1.8 MIT
0.1.7 MIT
0.1.6 MIT
0.1.5 MIT
0.1.4 MIT