Omitir claves de JSON
json-omitElimina las claves indicadas de un objeto; con deep=true en todos los niveles. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: devolver un objeto con solo las rutas indicadas (json-pick). 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: Removes the given keys from an object; with deep=true removes them at every nesting level (e.g. strip password or token fields). When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: returning a new object containing only the given dotted paths (json-pick). 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 |
|---|---|---|---|
| deep | No | Apply recursively (boolean; optional; default false). | |
| keys | Yes | Keys to remove (array of string; required; at least 1 items; up to 500 items). | |
| value | Yes | JSON value (any JSON value; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | any JSON value | |
| removed | No |