in your return use the following:
return this.Json("you result", JsonRequestBehavior.AllowGet);
More Related Contents:
- HttpPost vs HttpGet attributes in MVC: Why use HttpPost?
- How do I write unencoded Json to my View using Razor?
- How can I supply an AntiForgeryToken when posting JSON data using $.ajax?
- ASP.NET MVC How to pass JSON object from View to Controller as Parameter
- How to validate uploaded file in ASP.NET MVC?
- Where can I find a list of escape characters required for my JSON ajax return type?
- How can I return camelCase JSON serialized by JSON.NET from ASP.NET MVC controller methods?
- Return a JSON string explicitly from Asp.net WEBAPI?
- MVC: How to Return a String as JSON
- where is the best place to save images from users upload
- Json and Circular Reference Exception
- ASP.NET MVC: Controlling serialization of property names with JsonResult
- MVC controller : get JSON object from HTTP body?
- How to remove ASP.Net MVC Default HTTP Headers?
- How to return Json object from MVC controller to view
- Converting flattened hierarchical data from SQL Server into a structured JSON object with C#/Linq
- Force lowercase property names from Json() in ASP.NET MVC
- Customizing authorization in ASP.NET MVC
- Having troubles calling a Controller Post Method
- jQuery Ajax POSTing array to ASP.NET MVC Controller
- MVC ajax json post to controller action method
- ASP.NET MVC – Combine Json result with ViewResult
- “Security aware” action link?
- Getting “A potentially dangerous Request.Path value was detected from the client (&)”
- Encrypted configuration in ASP.NET Core
- Is it possible to create a generic @helper method with Razor?
- How to redirect HTTP to HTTPS in MVC application (IIS7.5)
- Accept comma and dot as decimal separator [duplicate]
- Unable to get windows authentication to work through local IIS
- Json: PHP to JavaScript safe or not?