Back to list
Views:   21.1K
Replies:  3
Archived
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,
Bogusław Dobrogost, Apr 12, 2011
Reply 1
You can use: jquery.serializeToJSON - https://github.com/raphaelm22/jquery.serializeToJSON
Its is prepared to work with forms ASP MVC

Raphael Nunes, Sep 01, 2015
Reply 2
There is also this solution which is widely used.

http://jquery.malsup.com/form/
King Wilder, Apr 24, 2011
Reply 3
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
Rajesh Pillai, Apr 16, 2011
Thanks, this way works well.
Dec 27, 2010
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas