public function create($content, $code = 200, $headers = [], $charset = null)
    {
        return $this->serializer->serialize(
            new Response($content, $code, $headers, $charset),
            'json'
        );
    }
public function create($content, $code = 200, $headers = [], $charset = null)
    {
        return $this->serializer->serialize(
            new Response($content, $code, $headers, $charset),
            'json'
        );
    }
public function create ( $ content , $ code = 200 , $ headers = [ ] , $ charset = null ) { return $ this -> serializer -> serialize ( new Response ( $ content , $ code , $ headers , $ charset ) , 'json' ) ; }
Create Response JSON

@param $content
@param int $code
@param array $headers
@param null $charset
@return Request
Create Response JSON