public function toJson()
    {
        $this->parse();
        $j = array();
        foreach ($this->_options as $flag => $value) {
            $j['options'][] = array(
                'option' => array(
                    'flag' => $flag,
                    'parameter' => $value
                )
            );
        }

        /**
         * @see Zend_Json
         */
        require_once 'Zend/Json.php';
        $json = Zend_Json::encode($j);

        return $json;
    }
public function toJson()
    {
        $this->parse();
        $j = array();
        foreach ($this->_options as $flag => $value) {
            $j['options'][] = array(
                'option' => array(
                    'flag' => $flag,
                    'parameter' => $value
                )
            );
        }

        /**
         * @see Zend_Json
         */
        require_once 'Zend/Json.php';
        $json = Zend_Json::encode($j);

        return $json;
    }
public function toJson ( ) { $ this -> parse ( ) ; $ j = array ( ) ; foreach ( $ this -> _options as $ flag => $ value ) { $ j [ 'options' ] [ ] = array ( 'option' => array ( 'flag' => $ flag , 'parameter' => $ value ) ) ; } /**
         * @see Zend_Json
         */ require_once 'Zend/Json.php' ; $ json = Zend_Json :: encode ( $ j ) ; return $ json ; }
Return the current set of options and parameters seen in Json format.

@return string
Return the current set of options and parameters seen in Json format .