How to make Rasa of being able to fetch answers in a json format file

So, I made a chatbot where the answers are taken in a json format file but I don’t know how so that the chatbot can answer and retrieve answers in a json format file, and if I manually copy it to the domain.yml file, it will take a long time and be less effective. Is there a way for the chatbot to answer questions from a json format file?

Please take a look at this How can the chatbot be able to retrieve and answer from a json format file - #2 by NikolaMr