DataStays

JSON Patch Generator

Generate the RFC 6902 patch between two JSON documents — the add/remove/replace operations that turn the original into the modified version. Useful for building a PATCH request or recording a change. It compares parsed JSON values, so duplicate keys and number spellings like 1.0 versus 1 are not preserved.