ASP.Net ScriptMethod generating empty JSON
问题 I'm using JavaScript to access a ScriptService method called GetPerson(). The problem is that it is returning a fairly empty JSON string instead of an actual object string. The same happens when I return a new DateTime object so the class is out of question I hope. This is returned: {"d":{"__type":"Person"}} this is my WebService.cs: using System; using System.Collections; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Xml