Crear JSON Merge Patch
json-merge-patch-createGenera el JSON Merge Patch (RFC 7386) que convierte a en b. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: aplicar un JSON Merge Patch (json-merge-patch-apply). 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: Generates the RFC 7386 merge patch that turns document a into b. Merge patches cannot set a value to null or patch inside arrays. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: applying an RFC 7386 JSON Merge Patch (json-merge-patch-apply). 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 |
|---|---|---|---|
| a | Yes | Source document (any JSON value; required). | |
| b | Yes | Target document (any JSON value; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | No | any JSON value |