So i have a HTML page that asks the user the name, the description and the image of an activity (like a formular). I want to make a function that saves all the user input into the data.json file when the user clicks on the button but i don't know how to do it. Here the function about the button in js :
function send() {
var nomActi = document.getElementById("nomActi").value;
var descriActi = document.getElementById("descriActi").value;
var imageActi = document.getElementById("imageActi").value;
}