A pure JavaScript library for rendering JSON Schema objects as readable HTML. Version 2.0.1 provides a simple API to visualize any JSON schema in a collapsible tree view, with options to control expansion depth and themes. It is lightweight, has no dependencies, and is designed for embedding in web pages. The library exposes a single global constructor and is also available as an AngularJS directive. Primary use case is debugging and displaying schema structures in a user-friendly format.
npm install json-schema-view-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a JSONSchemaView instance from a schema object and appends the rendered tree to the document body.
Consider forking or using alternatives like react-jsonschema-viewer if active maintenance is needed.
Explicitly pass desired depth to avoid unexpected full collapse.
Use a schema validator like Ajv before rendering if validation is needed.
Use default import `import JSONSchemaView from 'json-schema-view-js'` or include the script via <script> tag that exposes the global.
Run `npm install json-schema-view-js` or install via bower as documented.
Ensure schema is a valid object and not undefined/null.
No dependency data recorded yet.