4 ms·
One final “bad”: the update operation (known as replace) is also slightly lacking in my opinion. I’d like to be able to update an object with a partial fragment
by raydiatian 4y ago
One final “bad”: the update operation (known as replace) is also slightly lacking in my opinion. I’d like to be able to update an object with a partial fragment, eg:
The op
{ “op”: “replace”, “path”: “/foo”, value { “a”: 3 } }
Applied to a base object
{ “foo”: { “a”: 0, “c”: 1 } }
Will update “a”, but will throw away existing property /foo/c.
This is dumb. The other problems like it are dumb. Like so dumb it’s hard to not ruminate, so everybody here that complains is right. But not much so that the technology is void of use as some seem to suggest.
It’s so funny that JSON Patch 2 hasn’t come out with more extensions/improvements. Perhaps this Ycomb thread is the little push over the edge that we need to get a ball rolling!