The replace operation in the spec suggests: The target location MUST exist for the operation to be successful.
Given:
{
"boop": true,
"barp": false
}
And patches:
[
{ "op": "replace", "path": "/test", "value": "boop" }
]
Expected:
{
"boop": true,
"barp": false
}
Actual:
{
"boop": true,
"barp": false,
"test": "boop"
}
These differences can be seen between https://jsonpatch.me/ and https://josdejong.github.io/immutable-json-patch/
The replace operation in the spec suggests:
The target location MUST exist for the operation to be successful.Given:
{ "boop": true, "barp": false }And patches:
[ { "op": "replace", "path": "/test", "value": "boop" } ]Expected:
{ "boop": true, "barp": false }Actual:
{ "boop": true, "barp": false, "test": "boop" }These differences can be seen between https://jsonpatch.me/ and https://josdejong.github.io/immutable-json-patch/