src/File/Json.php
public function decode(array $options = [])
    {
        $json = json_decode($this->getContents(), true);

        if ($json === null && json_last_error() === JSON_ERROR_NONE) {
            $this->validateSyntax();

            return $this;
        }

        $this->validateSchema();

        return $json;
    }
public function decode(array $options = [])
    {
        $json = json_decode($this->getContents(), true);

        if ($json === null && json_last_error() === JSON_ERROR_NONE) {
            $this->validateSyntax();

            return $this;
        }

        $this->validateSchema();

        return $json;
    }
public function decode ( array $ options = [ ] ) { $ json = json_decode ( $ this -> getContents ( ) , true ) ; if ( $ json === null && json_last_error ( ) === JSON_ERROR_NONE ) { $ this -> validateSyntax ( ) ; return $ this ; } $ this -> validateSchema ( ) ; return $ json ; }
Decodes JSON data.

@param array $options - Options.

@throws DecodeException

@return array
Decodes JSON data .