I have some python files, which consist of functions. I have another python file let it be sample.py, where I will be calling those functions, so whenever I am calling the functions, the information from the function should be saved into an external JSON file. Example:
def Addtext(Text, TextColor=(0,0,0), TextLevel=5):
pass
This is the function which I will be calling in my sample.py. so whenever the function is called, the information inside the function, that can be anything, such as Text Text-color, text level, should be taken and saved into a JSON file. so whenever the function is hit the information should be saved into a JSON file.