original_string: public function sseMessageJSON($text, $id = null)
      {
          if (!is_null($id)) {
              echo "id: $id\n";
          }
  
          $text = 'data: '.json_encode($text)."\n\n";
          $this->_out_encoding = false;
          echo $text;
          flush();
          $this->_out_encoding = true;
      }
code: public function sseMessageJSON($text, $id = null)
      {
          if (!is_null($id)) {
              echo "id: $id\n";
          }
  
          $text = 'data: '.json_encode($text)."\n\n";
          $this->_out_encoding = false;
          echo $text;
          flush();
          $this->_out_encoding = true;
      }
code_tokens: public function sseMessageJSON ( $ text , $ id = null ) { if ( ! is_null ( $ id ) ) { echo "id: $id\n" ; } $ text = 'data: ' . json_encode ( $ text ) . "\n\n" ; $ this -> _out_encoding = false ; echo $ text ; flush ( ) ; $ this -> _out_encoding = true ; }
docstring: Sends text or structured data through SSE channel encoded
  in JSON format. You may supply id argument.
docstring_tokens: Sends text or structured data through SSE channel encoded in JSON format . You may supply id argument .