The svrx plugin for json-viewer
This plugin will convert the JSON response to a json viewer's page, but it won't affect the response via ajax or fetch.
Please make sure that you have installed svrx already.
svrx -p json-viewer
const svrx = require('@svrx/svrx');
svrx({ plugins: [ 'json-viewer' ] }).start();
{
type: {
description: 'Enable data type labels prefix values',
default: false,
type: 'boolean'
},
collapsed: {
default: false,
description: 'When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth.',
anyOf: [
{
type: 'number',
},
{
type: 'boolean',
},
],
},
theme: {
type: 'string',
description: 'RJV supports base-16 themes.',
},
}
MIT