@register.simple_tag(takes_context=True)
def view_as_json(context):
    view = context['view']
    return json.dumps(view.as_json(context))
Returns our view serialized as json
dataset/ETHPy150Open nyaruka/smartmin/smartmin/templatetags/smartmin.py/view_as_json