So far, we have seen how AJAX calls can be made by passing simple data types as parameters. Let's focus now on a scenario where we might need to pass a complex data type such as an object instead.
Recipe6.aspxto the current project.
Json2.jsfile from http://www.json.org/js.html and save to the
To convert an object into JSON format we will use the
stringify() function available in
Json2.js written by Douglas Crockford (
<form id="form1" runat="server"> ...