Componente de JavaScript para Embelleficar datos JSON-vista de esquema JSON
| Autor: | mohsen1 |
|---|---|
| Views Total: | 3,013 |
| Sitio oficial: | Ir a la web |
| Actualizado: | September 16, 2015 |
| Licencia: | MIT |
Vista prévia
Descripción
La vista de esquema JSON es un componente de JavaScript puro que analiza, formatea, embellece, renderiza el esquema JSON en una estructura de vista de árbol más legible. Basado en < a href = "https://github.com/mohsen1/json-formatter-js" target = "_ blank" rel = "noopener" > JSON Formatter .
Funcionamiento
Cargue los archivos CSS de JS del formateador JSON y de la vista de esquema JSON & en el documento.
<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 ])
Registro de cambios
08/01/2018
- v2.0.0





