ietf
[Top] [All Lists]

Re: Last Call: <draft-ietf-appsawg-json-patch-08.txt> (JSON Patch) to Proposed Standard

2012-12-11 17:43:48

On 12/12/2012, at 2:25 AM, Barry Leiba <barryleiba(_at_)computer(_dot_)org> 
wrote:

1. Do I have this right, or am I mistaken about the result of that operation?

The former.

2. Assuming I have it right, can someone explain why it's this way?

"add" has the semantics of "make the value *this*".

"replace" has the semantics of "make the existing value *this*"; if there isn't 
an existing value, it's an error.


3. Can someone explain why this is the right way to specify it, rather
than using "replace" for this?

As has already been mentioned, there are multiple tools in the box.

Cheers,


--
Mark Nottingham   http://www.mnot.net/