1. w-jsonview-tree
A wrapper for json-view.
w-jsonview-tree
Package: w-jsonview-tree
Created by: yuda-lyu
Last modified: Mon, 25 Mar 2024 14:57:07 GMT
Version: 1.0.31
License: MIT
Downloads: 757
Repository: https://github.com/yuda-lyu/w-jsonview-tree

Install

npm install w-jsonview-tree
yarn add w-jsonview-tree

w-jsonview-tree

A wrapper for json-view.

language
npm version
gzip file size
npm download
npm download
jsdelivr download

Documentation

To view documentation or get support, visit docs.

Example

To view some examples for more understanding, visit examples:

small data: ex-small.html [source code]

large data: ex-large.html [source code]

formatter: ex-formatter.html [source code]

Installation

Using npm(ES6 module):

Note: w-jsonview-tree is not dependent on any package.

npm i w-jsonview-tree

By import:

import jv from 'w-jsonview-tree'

let data={a1:123,b1:'xyz',c1:[1.2,3.4,'5.6',false],d1:{cid:'WK2WHS',name:'peter',unique:false}}
let ele=document.querySelector('#id')

jv(data, element, {expanded:true})

In a browser(UMD module):

Add script for w-jsonview-tree.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/w-jsonview-tree.umd.js"></script>

Directly use:

let jv=window['w-jsonview-tree']

let data={a1:123,b1:'xyz',c1:[1.2,3.4,'5.6',false],d1:{cid:'WK2WHS',name:'peter',unique:false}}
let ele=document.querySelector('#id')

jv(data, ele, {expanded:true})

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code