public function outputJson($data, $options = array())
    {
        $this->addHeader('Content-Type', 'application/json')
            ->addOptionalHeaders($options)
            ->sendHeaders();

        echo gplcart_json_encode($data);
        exit;
    }