original_string: public function render($content, Response $response)
      {
          $response->setStatusCode(Response::HTTP_OK);
          $response->headers->set('Content-Type', 'application/json');
          $response->setContent(json_encode($content));
  
          return $response;
      }
code: public function render($content, Response $response)
      {
          $response->setStatusCode(Response::HTTP_OK);
          $response->headers->set('Content-Type', 'application/json');
          $response->setContent(json_encode($content));
  
          return $response;
      }
code_tokens: public function render ( $ content , Response $ response ) { $ response -> setStatusCode ( Response :: HTTP_OK ) ; $ response -> headers -> set ( 'Content-Type' , 'application/json' ) ; $ response -> setContent ( json_encode ( $ content ) ) ; return $ response ; }
docstring: Renders any given content as a json string
  
  @param mixed    $content  This can be serializable data type.
  @param Response $response The response object
  
  @return Response $response
docstring_tokens: Renders any given content as a json string