public function get($jsonPath)
    {
        $this->hasDiverged = false;
        $result = $this->getReal($this->jsonObject, $jsonPath);
        if ($this->smartGet && $result !== false && !$this->hasDiverged) {
            return $result[0];
        }
        return $result;
    }
public function get($jsonPath)
    {
        $this->hasDiverged = false;
        $result = $this->getReal($this->jsonObject, $jsonPath);
        if ($this->smartGet && $result !== false && !$this->hasDiverged) {
            return $result[0];
        }
        return $result;
    }
public function get ( $ jsonPath ) { $ this -> hasDiverged = false ; $ result = $ this -> getReal ( $ this -> jsonObject , $ jsonPath ) ; if ( $ this -> smartGet && $ result !== false && ! $ this -> hasDiverged ) { return $ result [ 0 ] ; } return $ result ; }
Returns an array containing references to the
objects that match the JsonPath. If the result is
empty returns false.

If smartGet was set to true when creating the instance and
the JsonPath given does not branch, it will return the value
instead of an array of one element.

@param string $jsonPath jsonPath

@return mixed
Returns an array containing references to the objects that match the JsonPath . If the result is empty returns false .