original_string: protected function jsonResponse($data)
      {
          /** @var \Magento\Framework\Controller\Result\Json $resultJson */
          $resultJson = $this->resultJsonFactory->create();
          $resultJson->setHeader('Content-type', 'application/json', true);
          $resultJson->setData($data);
          return $resultJson;
      }
code: protected function jsonResponse($data)
      {
          /** @var \Magento\Framework\Controller\Result\Json $resultJson */
          $resultJson = $this->resultJsonFactory->create();
          $resultJson->setHeader('Content-type', 'application/json', true);
          $resultJson->setData($data);
          return $resultJson;
      }
code_tokens: protected function jsonResponse ( $ data ) { /** @var \Magento\Framework\Controller\Result\Json $resultJson */ $ resultJson = $ this -> resultJsonFactory -> create ( ) ; $ resultJson -> setHeader ( 'Content-type' , 'application/json' , true ) ; $ resultJson -> setData ( $ data ) ; return $ resultJson ; }
docstring: Build a JSON response
  
  @param array $data Response data
  @return \Magento\Framework\Controller\Result\Json
docstring_tokens: Build a JSON response