public function get(string $pointer, $default = null)
    {
        if (!$path = Compare::path($pointer)) {
            return $this->document;
        }

        return Arr::get($this->document, $path, $default);
    }
public function get(string $pointer, $default = null)
    {
        if (!$path = Compare::path($pointer)) {
            return $this->document;
        }

        return Arr::get($this->document, $path, $default);
    }
public function get ( string $ pointer , $ default = null ) { if ( ! $ path = Compare :: path ( $ pointer ) ) { return $ this -> document ; } return Arr :: get ( $ this -> document , $ path , $ default ) ; }
Get a value from using a JSON pointer.

@param string $pointer
@param mixed|null $default
@return mixed
Get a value from using a JSON pointer .