import json


def exportJSON(data, path_to_json="./exported_data.json") -> None:
    """Exports a dictionary to JSON file"""
    try:
        with open(path_to_json, 'w') as f:
            return(json.dump(data, f))
    except Exception as error:
        print(f"Error: exportJSON({path_to_json}) -> {error}")