Describir estructura JSON
json-describeResume la estructura de un JSON: profundidad, conteos por tipo, tamaño y rutas distintas. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: convertir documentos de ejemplo (json-schema-from-samples). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Summarizes a JSON value: nesting depth, counts of each type, number of keys, serialized size, and the set of distinct paths (arrays collapsed to []). When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: turning sample documents (json-schema-from-samples). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Any JSON value (any JSON value; required). | |
| max_paths | No | Max paths to list (integer; optional; default 200; min 0; max 5000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | No | ||
| depth | No | ||
| paths | No | ||
| counts | No | ||
| distinct_paths | No |