Front end connection to JSON file automatically [closed]

I have created a react app where ,whenever I click on a generate button my generate time is displayed in a table form in my frontend react page, so now I want to store this table’s information inside my JSON file automatically how can I do that?

I am expecting a solution.