parameters: (templates, context, request)
return_statement: return HttpResponse(_json)
docstring: Generate a JSON HttpResponse with rendered template HTML.
docstring_summary: Generate a JSON HttpResponse with rendered template HTML.
docstring_tokens: Generate a JSON HttpResponse with rendered template HTML .
function: def render_to_json(templates, context, request):
      """
      Generate a JSON HttpResponse with rendered template HTML.
      """
      html = render_to_string(
          templates,
          context=context,
          request=request
      )
      _json = json.dumps({
          "html": html
      })
      return HttpResponse(_json)
function_tokens: def render_to_json ( templates , context , request ) : html = render_to_string ( templates , context = context , request = request ) _json = json . dumps ( { "html" : html } ) return HttpResponse ( _json )