@register.filter
def jsonify(obj):
    d = model_to_dict(obj)
    return json.dumps(d, cls=LazyEncoder)
Test the open and close functionality using a path specification.
dataset/ETHPy150Open california-civic-data-coalition/django-calaccess-campaign-browser/calaccess_campaign_browser/templatetags/calaccesscampaignbrowser.py/jsonify--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/tests/file_io/fake_file_io.py/FakeFileTest.testOpenClosePathSpec