I want to return an HTML snippet as well as other values in a json string, here is what I have:
$html = $this->render(\'sometemplate.html.twig\', array( \
Use $this->renderView() instead.
$this->renderView()
$this->render() returns a Response object, while $this->renderView() returns a string resulting from rendering a template.
$this->render()
Response