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