Elegir claves o rutas de JSON
json-pickDevuelve un objeto con solo las rutas indicadas (p. ej. user.name). Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: aplanar objetos y arreglos anidados en un nivel con claves con puntos (json-flatten-paths). 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: Returns a new object containing only the given dotted paths (e.g. user.name, items.0.id) from the input object. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: flattening nested objects/arrays into one level with dotted keys (json-flatten-paths). 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 |
|---|---|---|---|
| paths | Yes | Dotted paths to keep (array of string; required; at least 1 items; up to 500 items). | |
| value | Yes | Object (any JSON value; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | any JSON value |