I've got questionnaire page on my website using bootstrap/jquery. I have 2 forms: for person and for business and each of it has a lot of checkboxes, input elements and etc. On the backend side we await a json file which we will parse after user form be completed.
What are the best practices to build a json file according to the following situation. Should i do with pure JS script in the end of page or there is a better way to do it?