exactly the single character "-", making the new referenced
value the (nonexistent) member after the last array element.
RFC6902:
An element to add to an existing array - whereupon the supplied
value is added to the array at the indicated location. Any
elements at or above the specified index are shifted one position
to the right. The specified index MUST NOT be greater than the
number of elements in the array. If the "-" character is used to
index the end of the array (see [RFC6901]), this has the effect of
appending the value to the array.
the following json-patch example is not conform with above specs:
RFC6901:
RFC6902:
the following json-patch example is not conform with above specs:
according to the specs the patch should be:
this results in an error on the server when applying the patch (in java)