Aplicar JSON Merge Patch
json-merge-patch-applyAplica un JSON Merge Patch (RFC 7386): objetos se fusionan, null elimina, lo demás reemplaza. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: generar el JSON Merge Patch (json-merge-patch-create). 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: Applies an RFC 7386 JSON Merge Patch: objects merge recursively, null deletes a key, any other value replaces. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: generating the RFC 7386 merge patch that turns document a into b (json-merge-patch-create). 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 |
|---|---|---|---|
| patch | Yes | Merge patch (any JSON value; required). | |
| value | Yes | Target document (any JSON value; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | any JSON value |