This article shows how to pass a javascript object to a .NET webservice that expects a parameter of type object. JSON is an enormously powerful and lightweight way to send data to and from a webservice, however if there are a number of parameters that are needed to be sent to webservice, building a JSON string can be a pain, and having to set your webmethod to expect a matching number of parameters can equally be as painful. This article shows how to build and pass a javascript object "Customer" and pass it to a .NET webservice webmethod that is expecting an object of type "Customer".
View Complete Post