Home  /  Questions  /  Question



113   96.7
Apr 12, 2011


jQuery serializing an ASP.NET form to JSON?

Is there an easy way to serialize a form to JSON?   I know I can do it relatively easy with ASP.NET AJAX, but we have decided to standardize on jQuery, so we will not have to introduce another Javascript library.

To go against what I just said before (about not introducing a new library) does anyone have experiences with json2.js? This library is available from douglas crockford

Thanks,



1,364   100.0
Apr 16, 2011
A couple of good discussions here..
http://stackoverflow.com/questions/1184624/serialize-form-to-json-with-jquery


I have tried json2.js on a pet project and its great for doing this kind of thing.
http://stackoverflow.com/questions/191881/serializing-to-json-in-jquery

578   99.9
Apr 24, 2011
There is also this solution which is widely used.

http://jquery.malsup.com/form/