objectscript-json-patch

An implementation of JSON-Patch in ObjectScript.
Why you should use JSON-Patch
JSON-Patch (RFC6902) is a standard format that allows you to update a JSON document by sending the changes rather than the whole document. JSON Patch plays well with the HTTP PATCH verb (method) and REST style programming.
Install
With zpm :
USER>zpm
zpm:USER>install objectscript-json-patch
How-To use it
Use it with this call :
Do ##class(Grongier.JSON.Utils).Patch(tDoc,tPatch)
Where :
- tDoc is a %DynamicObject (JSON)
- tPatch is a %DynamicArray of the patches (the JSON Patch).

.png)


906