""" Copyright start
  Copyright (C) 2008 - 2023 Fortinet Inc.
  All rights reserved.
  FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE
  Copyright end """
# define a function and add filter name of this function in function name
# Or import a function from some other python accessible file
# Eg.
# from expression_builder.my_functions import substract
# This filter will be populated in others section of expression builder UI


# example function definition
# def add(a, b, *args, **kwargs):
#     return a+b

from json2html import *
import html_to_json

def jsonToTable(data):
    return json2html.convert(json=data)

def html2json(data):
    return html_to_json.convert(data)

func_map = {
    # 'filter name': filter function
    # 'json2table': jsonToTable
    'html2json': html2json

}