javascript - Best way to build JSON with JS -
this question has answer here:
- convert js object json string 19 answers
i've got questionnaire page on website using bootstrap/jquery. have 2 forms: person , business , each of has lot of checkboxes, input elements , etc. on backend side await json file parse after user form completed.
what best practices build json file according following situation. should pure js script in end of page or there better way it?
for easy use , backward compatibility can use http://malsup.com/jquery/form/
or pick data 1 one inputs have , build object want send server, @ end send using jquery or convert json , want using:
var jsonstr = json.stringify(myobjectfromforminputs);
Comments
Post a Comment