ietf
[Top] [All Lists]

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

2012-12-16 22:19:41

On 15/12/2012, at 4:13 AM, David J. Biesack 
<David(_dot_)Biesack(_at_)sas(_dot_)com> wrote:


"4.1 add" and "4.2 remove" refers to "specified index", but I do not see name 
of the index member specified in the draft, or how to represent it.
(Other sections are more explicit, i.e. "from" for the "move" op.)

i.e. "index" as in 

 "index" : integer 

The phrasing 

  If the "-" character is used to index the end of the array, this has the 
effect of appending the value to the array.

is not clear. Where does this "-" character appear? Does one use just

 "index" : "-" 

in which case the spec should be 

 If the "-" string is used ...

If instead you mean a negative integer, i.e.

 "index" : negative-integer

and not just "-", does the spec interpret all negative integers to indicate 
appending to the end?

I think a reference to the JSON-Pointer spec at an appropriate place here will 
help readers.

Thanks,



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




<Prev in Thread] Current Thread [Next in Thread>