@register.simple_tag(takes_context=True)
def view_as_json(context):
    view = context['view']
    return json.dumps(view.as_json(context))
>>> QFactory().user.id.in_range(7, 10)
dataset/ETHPy150Open nyaruka/smartmin/smartmin/templatetags/smartmin.py/view_as_json--crossover with--dataset/ETHPy150Open Nepherhotep/django-orm-sugar/django_orm_sugar.py/QFactory.in_range