public function testFilterSliceD() { // Fetch up to the second index $result = (new JSONPath($this->exampleData(rand(0, 1))))->find("\$['store']['books'][-1:].title"); $this->assertEquals(['The Lord of the Rings'], $result->data()); }