JsonPath
JsonPath copied to clipboard
Support Array Slice Notation
Currently, array indexes can be selected using two forms. The first allows for the selection of a single index:
$..book[0]
The other allows for the selection of multiple indexes:
$..book[0, 1]
While the first style is very common, the second one has never been used. Both syntaxes should be replaced by the ES4 Array Slice Notation.
NOTE: This is a breaking change as it removes the multiple index syntax. I do not believe that this will affect any users, but I'm happy to hear differently in this issue.