JSONSchemaView

Code in GitHub

JSON Schema is very verbose and hard to read in JSON. This component helps rendering a JSON Schema in a user readable format.

Install via npm

npm install --save json-schema-view-js

API

import JSONSchemaView from 'json-schema-view-js';
// or use the global `JSONSchemaView` constructor function

const schema = {type: 'string', title: 'Name'};

const view = new JSONSchemaView(schema, 1, {theme: 'dark'});

document.body.appendChild(view.render());
Read more on GitHub

Demo