JavaScript Component For Beautifying JSON Data – JSON Schema View

Category: Javascript | September 16, 2015
Author: mohsen1
Views Total: 3,139
Official Page: Go to website
Last Update: September 16, 2015
License: MIT

Preview:

JavaScript Component For Beautifying JSON Data – JSON Schema View

Description:

JSON Schema View is a pure JavaScript component that parses, format, beautify, render your JSON schema in a more readable tree view structure. Based on JSON Formatter.

How to use it:

Load the JSON Formatter and JSON Schema View’s JS & CSS files in your document.

<script src="json-formatter-js/dist/bundle.js"></script>
<script src="dist/bundle.js"></script>

<link rel="stylesheet" href="json-formatter-js/dist/style.css">
<link rel="stylesheet" href="dist/style.css">

API.

// schema (Object) - The JSON Schema object.
// pen (Number) - Default: 1 This number indicates up to how many levels the rendered tree should expand. Set it to 0 to make the whole tree collapsed or set it to Infinity to expand the tree deeply.
JSONSchemaView(schema [, open ])

Changelog:

08/01/2018

  • v2.0.0

You Might Be Interested In:


Leave a Reply