NDJSON a arreglo JSON
ndjson-to-jsonConvierte JSON delimitado por líneas (NDJSON) en un arreglo. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: serializar un arreglo JSON como NDJSON (json-to-ndjson). 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: Parses newline-delimited JSON (JSON Lines) into an array, skipping blank lines; errors report the failing line number. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: serializing an array of JSON values as newline-delimited JSON (json-to-ndjson). 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 |
|---|---|---|---|
| ndjson | Yes | NDJSON text (string; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| values | No | any JSON value |