protected function checkJsonError()
    {
        if(!function_exists('json_last_error'))
        {
            throw new BadFunctionCallException('json_last_error() function not exits');
        }
        
        $jsonError = json_last_error();
        if($jsonError !== JSON_ERROR_NONE)
        {
            $this->jsonErrorException($jsonError);
        }
        
        return true;
    }
protected function checkJsonError()
    {
        if(!function_exists('json_last_error'))
        {
            throw new BadFunctionCallException('json_last_error() function not exits');
        }
        
        $jsonError = json_last_error();
        if($jsonError !== JSON_ERROR_NONE)
        {
            $this->jsonErrorException($jsonError);
        }
        
        return true;
    }
protected function checkJsonError ( ) { if ( ! function_exists ( 'json_last_error' ) ) { throw new BadFunctionCallException ( 'json_last_error() function not exits' ) ; } $ jsonError = json_last_error ( ) ; if ( $ jsonError !== JSON_ERROR_NONE ) { $ this -> jsonErrorException ( $ jsonError ) ; } return true ; }
Check exists error for last execution json funtion

@return boolean
@throws BadFunctionCallException
Check exists error for last execution json funtion