Apply or generate RFC 7396 merge patches. Set a field to null in a patch to remove it. 100% client-side.
null values delete the member.
If the patch is any other value (array, string, number, boolean, null), it replaces the target entirely.
Arrays are replaced, not merged โ for element-level operations use JSON Patch (RFC 6902) instead.