@register.filter
def jsonify(data):
    return json.dumps(data, default=json_date_handler)
Convert python data structures into a JSON string
dataset/ETHPy150Open tethysplatform/tethys/tethys_gizmos/templatetags/tethys_gizmos.py/jsonify