Example of sending JSON to the server:
function CallService() { var http = new HttpClient(); http.contentType = "application/json"; http.evalResult = true; var parm = { pk: 11, name: "Rick" }; var json = JSON.serialize( parm ); http.send("services/timetrakkerservice.WCSX?LoadCustomer",parm,Callback); } function Callback(result) { alert( result.Company); // *** Object result }
o.evalResult