JSON Formatter ."> JSON Formatter .">

Componente de JavaScript para Embelleficar datos JSON-vista de esquema JSON

Tiempo de ejecución: 30 minutos. Empezar

Autor: mohsen1
Views Total: 3,013
Sitio oficial: Ir a la web
Actualizado: September 16, 2015
Licencia: MIT

Vista prévia

Componente de JavaScript para Embelleficar datos JSON-vista de esquema JSON

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

Te puede interesar: