How can a JSON object, sent from the client to a server web method, be deserialized on the server?
In the javascript on the browser, the JSON object is constructed and sent as follows:
function saveRecord()
{
var s = [{
"ID":$("#spID").text(),
"Description":$("#txtDescription").val()
}]
cms.Services.WebService.saveTimeCard(s, saveOK, failed)
}
The send works, I can see what's in the object when I put a break in the code below:
[WebMethod]
public Object saveTimeCard(Object x)
{
// can see what's in object x, but how to put it to
// into a List or object
}
I'd like to deseri ...
Go to the complete details ...