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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/12/2012, at 4:13 AM, David J. Biesack <David.Biesack@xxxxxxx> 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/






[Index of Archives]     [IETF Annoucements]     [IETF]     [IP Storage]     [Yosemite News]     [Linux SCTP]     [Linux Newbies]     [Fedora Users]