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


1,364   100.0
Apr 16, 2011
A couple of good discussions here..

I have tried json2.js on a pet project and its great for doing this kind of thing.

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


0   0
Sep 01, 2015
You can use: jquery.serializeToJSON - https://github.com/raphaelm22/jquery.serializeToJSON
Its is prepared to work with forms ASP MVC