remorhaz/php-json-path

Single negative index in predicate should be concidered as slice

Closed this issue · 0 comments

Expression $[-1] always points to non-existing index (because JSON arrays always start from 0). Instead of this, this expression must be evaluated as equivalent of [-1::], so that it points to last element in array.