Jean-Louis Monteiro created JOHNZON-325:
-------------------------------------------

             Summary: JSON Pointer using "-" (last index) not properly handled 
for arrays
                 Key: JOHNZON-325
                 URL: https://issues.apache.org/jira/browse/JOHNZON-325
             Project: Johnzon
          Issue Type: Bug
            Reporter: Jean-Louis Monteiro


As per spec, "-" always points to the first index after the last element.

As the arrays are zero based in terms of index. "-" is always equals to the 
size of the array.

 

When adding to "-" it basically adds at the tail of the array.

 

Any other operation must result in a JSonException (getValue, replace and 
remove)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to