diff --git a/src/Codeception/Util/JsonArray.php b/src/Codeception/Util/JsonArray.php index 6b2d553..57bc45b 100644 --- a/src/Codeception/Util/JsonArray.php +++ b/src/Codeception/Util/JsonArray.php @@ -85,9 +85,9 @@ public function filterByXPath($xpath) public function filterByJsonPath($jsonPath) { if (!class_exists('Flow\JSONPath\JSONPath')) { - throw new \Exception('JSONPath library not installed. Please add `flow/jsonpath` to composer.json'); + throw new \Exception('JSONPath library not installed. Please add `softcreatr/jsonpath` to composer.json'); } - return (new JSONPath($this->jsonArray))->find($jsonPath)->data(); + return (new JSONPath($this->jsonArray))->find($jsonPath)->getData(); } public function getXmlString()