Please try is as below.
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
ValueProviderFactories.Factories.Remove(ValueProviderFactories.Factories.OfType<JsonValueProviderFactory>().FirstOrDefault());
ValueProviderFactories.Factories.Add(new JsonDotNetValueProviderFactory());
}
Please read the below mentioned article to get more details about how to configure JsonValueProviderFactory using Json.Net.
JsonValueProviderFactory using Json.Net
UPDATE
This is a sample which I extracted from my project.Please change it according to your situation.
JS
$.ajax({
url: "/PetBooking/GetSelectedCategoryTypeServices",
dataType: 'json',
data: { providerKey: '<%:Model.Provider.Key%>', serviceCategoryTypeId: serviceCategoryTypeId },
success: function (data) {
$("#ddlService").fillSelect(data);
whenOnlyService();
$("#ddlService").sb("refresh");
$('#ddlService').trigger('change');
HideLoader();
}
});
Action method
[HttpGet]
public JsonResult GetSelectedCategoryTypeServices(string providerKey, string serviceCategoryTypeId)
{
return Json(defaultItems.Union(items), JsonRequestBehavior.AllowGet);
}