javascript - Best way to build JSON with JS -


this question has answer here:

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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -