Asp.net 2 :I would like to post to a web service and get the result as
json format. The method is decorated with
[ResponseFormat=ResponseFormat.Json)]and it return a simple class.
When I use prototype code like : asmxFile.MethodName( par1,
par2,function(obj){}); the obj is json format, but If I use
$.post("asmxFile/MethodName", {par1:val1, par2:val2}, function(obj)
{}); the obj is not json format but has xml, and text properties
containing all json memebers. What else shuld I add to my call to get
json format. I tried getJson but it doesnùt call my web services. Any
help would be greatly appreciated:

Reply via email to