It can convert a HTML form inputs(index.html) to a JSON Object and save it in a JSON file(here named posts.json), also you can do it repetitively and get multiply objects in that file.
tadeha/html-form-to-json
Converting a HTML form inputs to a JSON Object and stores it in a JSON file
HTMLMIT