Utility/JsonParser.php
public function getOptionalParam($path, $default = false)
    {
        $this->validatePath($path);

        $value = $this->translatePathElement($path, $this->params);

        if(null === $value)
        {
            return (null === $default) ? null : $default;
        }

        return $value;
    }
public function getOptionalParam($path, $default = false)
    {
        $this->validatePath($path);

        $value = $this->translatePathElement($path, $this->params);

        if(null === $value)
        {
            return (null === $default) ? null : $default;
        }

        return $value;
    }
public function getOptionalParam ( $ path , $ default = false ) { $ this -> validatePath ( $ path ) ; $ value = $ this -> translatePathElement ( $ path , $ this -> params ) ; if ( null === $ value ) { return ( null === $ default ) ? null : $ default ; } return $ value ; }
Returns json key value or false if key doesn't exist

@param  string $path json key
@param  string $default default value to be returned
@return mixed        value
Returns json key value or false if key doesn t exist