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

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

        echo gplcart_json_encode($data);
        exit;
    }
public function outputJson ( $ data , $ options = array ( ) ) { $ this -> addHeader ( 'Content-Type' , 'application/json' ) -> addOptionalHeaders ( $ options ) -> sendHeaders ( ) ; echo gplcart_json_encode ( $ data ) ; exit ; }
Output JSON string
@param mixed $data
@param array $options
Output JSON string