I have a WebMethod
like this one:
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public List<Event> getEvents()
{
var db = new DbContext();
var events = from x in db.Event select x;
return events.ToList();
}
By default it use JsonSerializer
from .NET i want to use Json.Net as default serializer it is possible?
It isn't a WFC project, it's a Website project in Visual Studio.