Class 'JSONPath' not found
zQueal opened this issue · 2 comments
zQueal commented
After cloning the repository and running composer update
, I include the vendor/autoload.php
file into a test index.php
file to test the README example:
<?php
require('vendor/autoload.php');
$data = ['people' => [['name' => 'Joe'], ['name' => 'Jane'], ['name' => 'John']]];
$result = (new JSONPath($data))->find('$.people.*.name');
Result: PHP Fatal error: Class 'JSONPath' not found in index.php on line 6
Any ideas, here?
zQueal commented
Was an issue with my local environment.
theDanielJLewis commented
I know this is over 5 years old, but I need the solution, too. What was the problem, @zQueal?