A wrapper for json.human.js.
To view documentation or get support, visit docs.
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]
Note: w-jsonview-table is not dependent on any package.
npm i w-jsonview-table
By import:
import jv from 'w-jsonview-table'
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)
Add script for w-jsonview-table.
<script src="https://cdn.jsdelivr.net/npm/w-jsonview-table@1.0.25/dist/w-jsonview-table.umd.js"></script>
Directly use:
let jv=window['w-jsonview-table']
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)