original_string: public static function json($data, $status = 200, $headers = array())
      {
          $jsonHeader = array('Content-Type' => 'application/json');
  
          $content = json_encode($data);
  
          return new Response($content, $status, $jsonHeader);
      }
code: public static function json($data, $status = 200, $headers = array())
      {
          $jsonHeader = array('Content-Type' => 'application/json');
  
          $content = json_encode($data);
  
          return new Response($content, $status, $jsonHeader);
      }
code_tokens: public static function json ( $ data , $ status = 200 , $ headers = array ( ) ) { $ jsonHeader = array ( 'Content-Type' => 'application/json' ) ; $ content = json_encode ( $ data ) ; return new Response ( $ content , $ status , $ jsonHeader ) ; }
docstring: Return JSON response.
  
  @param array $data
  @param int   $status
  @param array $headers
  
  @return Response
docstring_tokens: Return JSON response .